Class: Collie::AST::Action
- Inherits:
-
Object
- Object
- Collie::AST::Action
- Defined in:
- lib/collie/ast.rb
Overview
Action code block
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#location ⇒ Object
Returns the value of attribute location.
Instance Method Summary collapse
-
#initialize(code:, location: nil) ⇒ Action
constructor
A new instance of Action.
Constructor Details
#initialize(code:, location: nil) ⇒ Action
135 136 137 138 |
# File 'lib/collie/ast.rb', line 135 def initialize(code:, location: nil) @code = code @location = location end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
133 134 135 |
# File 'lib/collie/ast.rb', line 133 def code @code end |
#location ⇒ Object
Returns the value of attribute location.
133 134 135 |
# File 'lib/collie/ast.rb', line 133 def location @location end |