Class: ASTTreeViewBuilder
- Inherits:
-
Object
- Object
- ASTTreeViewBuilder
- Includes:
- JRubyFX
- Defined in:
- lib/jruby_visualizer/ast_tree_view_builder.rb
Overview
Builder for the custom TreeItem from an usual JRuby AST
Instance Attribute Summary collapse
-
#tree_view ⇒ Object
Returns the value of attribute tree_view.
Instance Method Summary collapse
- #build_tree_item(node) ⇒ Object
- #build_view(root) ⇒ Object
-
#initialize(tree_view) ⇒ ASTTreeViewBuilder
constructor
A new instance of ASTTreeViewBuilder.
Constructor Details
#initialize(tree_view) ⇒ ASTTreeViewBuilder
Returns a new instance of ASTTreeViewBuilder.
51 52 53 |
# File 'lib/jruby_visualizer/ast_tree_view_builder.rb', line 51 def initialize(tree_view) @tree_view = tree_view end |
Instance Attribute Details
#tree_view ⇒ Object
Returns the value of attribute tree_view.
49 50 51 |
# File 'lib/jruby_visualizer/ast_tree_view_builder.rb', line 49 def tree_view @tree_view end |
Instance Method Details
#build_tree_item(node) ⇒ Object
55 56 57 |
# File 'lib/jruby_visualizer/ast_tree_view_builder.rb', line 55 def build_tree_item(node) ASTTreeItem.new(node) end |