Class: Collie::AST::Prologue
- Inherits:
-
Object
- Object
- Collie::AST::Prologue
- Defined in:
- lib/collie/ast.rb
Overview
Prologue section (code before first %%)
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) ⇒ Prologue
constructor
A new instance of Prologue.
Constructor Details
#initialize(code:, location: nil) ⇒ Prologue
Returns a new instance of Prologue.
167 168 169 170 |
# File 'lib/collie/ast.rb', line 167 def initialize(code:, location: nil) @code = code @location = location end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
165 166 167 |
# File 'lib/collie/ast.rb', line 165 def code @code end |
#location ⇒ Object
Returns the value of attribute location.
165 166 167 |
# File 'lib/collie/ast.rb', line 165 def location @location end |