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



135
136
137
138
# File 'lib/collie/ast.rb', line 135

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

Instance Attribute Details

#codeObject

Returns the value of attribute code.



133
134
135
# File 'lib/collie/ast.rb', line 133

def code
  @code
end

#locationObject

Returns the value of attribute location.



133
134
135
# File 'lib/collie/ast.rb', line 133

def location
  @location
end