Class: Collie::AST::Prologue

Inherits:
Object
  • Object
show all
Defined in:
lib/collie/ast.rb

Overview

Prologue section (code before first %%)

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject

Returns the value of attribute code.



179
180
181
# File 'lib/collie/ast.rb', line 179

def code
  @code
end

#locationObject

Returns the value of attribute location.



179
180
181
# File 'lib/collie/ast.rb', line 179

def location
  @location
end