Class: Rubinius::AST::Match2
- Defined in:
- lib/compiler/ast/control_flow.rb
Instance Attribute Summary collapse
-
#pattern ⇒ Object
Returns the value of attribute pattern.
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, pattern, value) ⇒ Match2
constructor
A new instance of Match2.
- #to_sexp ⇒ Object
Methods inherited from Node
#ascii_graph, #attributes, #children, match_arguments?, match_send?, #new_block_generator, #new_generator, #node_name, node_name, #pos, #set_child, transform, #transform, transform_comment, transform_kind, transform_kind=, transform_name, #visit, #walk
Constructor Details
#initialize(line, pattern, value) ⇒ Match2
192 193 194 195 196 |
# File 'lib/compiler/ast/control_flow.rb', line 192 def initialize(line, pattern, value) @line = line @pattern = pattern @value = value end |
Instance Attribute Details
#pattern ⇒ Object
Returns the value of attribute pattern.
190 191 192 |
# File 'lib/compiler/ast/control_flow.rb', line 190 def pattern @pattern end |
#value ⇒ Object
Returns the value of attribute value.
190 191 192 |
# File 'lib/compiler/ast/control_flow.rb', line 190 def value @value end |
Instance Method Details
#to_sexp ⇒ Object
198 199 200 |
# File 'lib/compiler/ast/control_flow.rb', line 198 def to_sexp [:match2, @pattern.to_sexp, @value.to_sexp] end |