Class: Hashira::Trees
- Inherits:
-
Object
- Object
- Hashira::Trees
- Defined in:
- lib/hashira/trees.rb
Instance Method Summary collapse
- #all ⇒ Object
-
#initialize(project) ⇒ Trees
constructor
A new instance of Trees.
- #unparsed ⇒ Object
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
#all ⇒ Object
10 |
# File 'lib/hashira/trees.rb', line 10 def all = @_all ||= @project.files.to_h { [it, parse(it)] } |
#unparsed ⇒ Object
12 13 14 15 |
# File 'lib/hashira/trees.rb', line 12 def unparsed all @_unparsed ||= [] end |