gitlab-org--gitlab-foss/app/models/tree.rb

18 lines
327 B
Ruby
Raw Normal View History

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
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
def method_missing(m, *args, &block)
@raw.send(m, *args, &block)
2011-11-22 07:50:47 -05:00
end
def respond_to?(method)
return true if @raw.respond_to?(method)
super
end
2011-11-20 15:32:12 -05:00
end