# File app/models/tree.rb, line 8 def initialize(raw_tree, project, ref = nil, path = nil) @project, @ref, @path = project, ref, path @tree = if path.present? raw_tree / path.dup.force_encoding('ascii-8bit') else raw_tree end end
# File app/models/tree.rb, line 25 def empty? data.blank? end
# File app/models/tree.rb, line 21 def invalid? tree.nil? end
# File app/models/tree.rb, line 17 def is_blob? tree.is_a?(Grit::Blob) end