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.



167
168
169
170
# File 'lib/collie/ast.rb', line 167

def initialize(code:, location: nil)
  @code = code
  @location = location
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



165
166
167
# File 'lib/collie/ast.rb', line 165

def code
  @code
end

#locationObject

Returns the value of attribute location.



165
166
167
# File 'lib/collie/ast.rb', line 165

def location
  @location
end