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

18 lines
327 B
Ruby
Raw Normal View History

2011-11-20 20:32:12 +00:00
class Tree
2013-04-02 19:37:20 +00:00
attr_accessor :raw
2011-11-20 20:32:12 +00:00
def initialize(repository, sha, ref = nil, path = nil)
@raw = Gitlab::Git::Tree.new(repository, sha, ref, path)
2011-11-20 20:32:12 +00:00
end
2011-11-22 12:50:47 +00:00
def method_missing(m, *args, &block)
@raw.send(m, *args, &block)
2011-11-22 12:50:47 +00:00
end
def respond_to?(method)
return true if @raw.respond_to?(method)
super
end
2011-11-20 20:32:12 +00:00
end