2011-11-20 15:32:12 -05:00
|
|
|
class Tree
|
2013-04-02 15:37:20 -04:00
|
|
|
attr_accessor :raw
|
2011-11-20 15:32:12 -05:00
|
|
|
|
2013-04-02 14:30:36 -04:00
|
|
|
def initialize(repository, sha, ref = nil, path = nil)
|
|
|
|
@raw = Gitlab::Git::Tree.new(repository, sha, ref, path)
|
2011-11-20 15:32:12 -05:00
|
|
|
end
|
2011-11-22 07:50:47 -05:00
|
|
|
|
2013-04-02 14:30:36 -04:00
|
|
|
def method_missing(m, *args, &block)
|
|
|
|
@raw.send(m, *args, &block)
|
2011-11-22 07:50:47 -05:00
|
|
|
end
|
2013-03-31 16:48:12 -04:00
|
|
|
|
2013-04-02 14:30:36 -04:00
|
|
|
def respond_to?(method)
|
|
|
|
return true if @raw.respond_to?(method)
|
2013-03-31 16:48:12 -04:00
|
|
|
|
2013-04-02 14:30:36 -04:00
|
|
|
super
|
2013-03-31 16:48:12 -04:00
|
|
|
end
|
2011-11-20 15:32:12 -05:00
|
|
|
end
|