Class: SyntaxTree::YARV::DataFlowGraph::LocalArgument
- Inherits:
-
Object
- Object
- SyntaxTree::YARV::DataFlowGraph::LocalArgument
- Defined in:
- lib/syntax_tree/yarv/data_flow_graph.rb
Overview
This represents an object that goes on the stack that is passed between instructions within a basic block.
Instance Attribute Summary collapse
-
#length ⇒ Object
readonly
Returns the value of attribute length.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(length) ⇒ LocalArgument
constructor
A new instance of LocalArgument.
- #local? ⇒ Boolean
- #to_str ⇒ Object
Constructor Details
#initialize(length) ⇒ LocalArgument
Returns a new instance of LocalArgument.
53 54 55 |
# File 'lib/syntax_tree/yarv/data_flow_graph.rb', line 53 def initialize(length) @length = length end |
Instance Attribute Details
#length ⇒ Object (readonly)
Returns the value of attribute length.
51 52 53 |
# File 'lib/syntax_tree/yarv/data_flow_graph.rb', line 51 def length @length end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
51 52 53 |
# File 'lib/syntax_tree/yarv/data_flow_graph.rb', line 51 def name @name end |
Instance Method Details
#local? ⇒ Boolean
57 58 59 |
# File 'lib/syntax_tree/yarv/data_flow_graph.rb', line 57 def local? true end |
#to_str ⇒ Object
61 62 63 |
# File 'lib/syntax_tree/yarv/data_flow_graph.rb', line 61 def to_str length.to_s end |