Class: Hashira::Trees

Inherits:
Object
  • Object
show all
Defined in:
lib/hashira/trees.rb

Instance Method Summary collapse

Constructor Details

#initialize(project) ⇒ Trees

Returns a new instance of Trees.



6
7
8
# File 'lib/hashira/trees.rb', line 6

def initialize(project)
  @project = project
end

Instance Method Details

#allObject



10
# File 'lib/hashira/trees.rb', line 10

def all = @_all ||= @project.files.to_h { [it, parse(it)] }

#unparsedObject



12
13
14
15
# File 'lib/hashira/trees.rb', line 12

def unparsed
  all
  @_unparsed ||= []
end