Class: RailsIdle::TreeBuilder
- Inherits:
-
Object
- Object
- RailsIdle::TreeBuilder
- Defined in:
- lib/rails-idle/tree_builder.rb
Instance Method Summary collapse
-
#initialize(collector) ⇒ TreeBuilder
constructor
A new instance of TreeBuilder.
- #tree ⇒ Object
Constructor Details
#initialize(collector) ⇒ TreeBuilder
Returns a new instance of TreeBuilder.
3 4 5 |
# File 'lib/rails-idle/tree_builder.rb', line 3 def initialize(collector) @storage = collector.storage end |
Instance Method Details
#tree ⇒ Object
7 8 9 |
# File 'lib/rails-idle/tree_builder.rb', line 7 def tree @tree ||= build_tree end |