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

Returns a new instance of Epilogue.



191
192
193
194
# File 'lib/collie/ast.rb', line 191

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

Instance Attribute Details

#codeObject

Returns the value of attribute code.



189
190
191
# File 'lib/collie/ast.rb', line 189

def code
  @code
end

#locationObject

Returns the value of attribute location.



189
190
191
# File 'lib/collie/ast.rb', line 189

def location
  @location
end