Class: Hashira::Trees
- Inherits:
-
Object
- Object
- Hashira::Trees
- Defined in:
- lib/hashira/trees.rb
Instance Attribute Summary collapse
-
#all ⇒ Object
readonly
Returns the value of attribute all.
-
#unparsed ⇒ Object
readonly
Returns the value of attribute unparsed.
Instance Method Summary collapse
-
#initialize(project) ⇒ Trees
constructor
A new instance of Trees.
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
#all ⇒ Object (readonly)
Returns the value of attribute all.
11 12 13 |
# File 'lib/hashira/trees.rb', line 11 def all @all end |
#unparsed ⇒ Object (readonly)
Returns the value of attribute unparsed.
11 12 13 |
# File 'lib/hashira/trees.rb', line 11 def unparsed @unparsed end |