Class: Hashira::Trees

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project) ⇒ Trees

Returns a new instance of Trees.



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

def initialize(project)
  @unparsed = []
  @all = project.files.to_h { [it, parse(it)] }
end

Instance Attribute Details

#allObject (readonly)

Returns the value of attribute all.



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

def all
  @all
end

#unparsedObject (readonly)

Returns the value of attribute unparsed.



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

def unparsed
  @unparsed
end