Class: Collie::AST::InlineRule

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

Overview

Lrama extension: Inline rule

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rule:, location: nil) ⇒ InlineRule

Returns a new instance of InlineRule.



157
158
159
160
# File 'lib/collie/ast.rb', line 157

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

Instance Attribute Details

#locationObject

Returns the value of attribute location.



155
156
157
# File 'lib/collie/ast.rb', line 155

def location
  @location
end

#ruleObject

Returns the value of attribute rule.



155
156
157
# File 'lib/collie/ast.rb', line 155

def rule
  @rule
end