Class: Collie::AST::Epilogue

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

Overview

Epilogue section (code after second %%)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code:, location: nil) ⇒ Epilogue



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

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

Instance Attribute Details

#codeObject

Returns the value of attribute code.



175
176
177
# File 'lib/collie/ast.rb', line 175

def code
  @code
end

#locationObject

Returns the value of attribute location.



175
176
177
# File 'lib/collie/ast.rb', line 175

def location
  @location
end