Class: SyntaxTree::YARV::DataFlowGraph::BlockArgument
- Inherits:
-
Object
- Object
- SyntaxTree::YARV::DataFlowGraph::BlockArgument
- Defined in:
- lib/syntax_tree/yarv/data_flow_graph.rb
Overview
This represents an object that goes on the stack that is passed between basic blocks.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ BlockArgument
constructor
A new instance of BlockArgument.
- #local? ⇒ Boolean
- #to_str ⇒ Object
Constructor Details
#initialize(name) ⇒ BlockArgument
Returns a new instance of BlockArgument.
35 36 37 |
# File 'lib/syntax_tree/yarv/data_flow_graph.rb', line 35 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
33 34 35 |
# File 'lib/syntax_tree/yarv/data_flow_graph.rb', line 33 def name @name end |
Instance Method Details
#local? ⇒ Boolean
39 40 41 |
# File 'lib/syntax_tree/yarv/data_flow_graph.rb', line 39 def local? false end |
#to_str ⇒ Object
43 44 45 |
# File 'lib/syntax_tree/yarv/data_flow_graph.rb', line 43 def to_str name.to_s end |