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.
181 182 183 184 |
# File 'lib/collie/ast.rb', line 181 def initialize(code:, location: nil) @code = code @location = location end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
179 180 181 |
# File 'lib/collie/ast.rb', line 179 def code @code end |
#location ⇒ Object
Returns the value of attribute location.
179 180 181 |
# File 'lib/collie/ast.rb', line 179 def location @location end |