gitlab-org--gitlab-foss/app/models/tree.rb
2013-04-02 22:37:20 +03:00

17 lines
327 B
Ruby

class Tree
attr_accessor :raw
def initialize(repository, sha, ref = nil, path = nil)
@raw = Gitlab::Git::Tree.new(repository, sha, ref, path)
end
def method_missing(m, *args, &block)
@raw.send(m, *args, &block)
end
def respond_to?(method)
return true if @raw.respond_to?(method)
super
end
end