Class: Collie::AST::Action

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

Overview

Action code block

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Action.



147
148
149
150
# File 'lib/collie/ast.rb', line 147

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

Instance Attribute Details

#codeObject

Returns the value of attribute code.



145
146
147
# File 'lib/collie/ast.rb', line 145

def code
  @code
end

#locationObject

Returns the value of attribute location.



145
146
147
# File 'lib/collie/ast.rb', line 145

def location
  @location
end