Class: Collie::AST::InlineRule
- Inherits:
-
Object
- Object
- Collie::AST::InlineRule
- Defined in:
- lib/collie/ast.rb
Overview
Lrama extension: Inline rule
Instance Attribute Summary collapse
-
#location ⇒ Object
Returns the value of attribute location.
-
#rule ⇒ Object
Returns the value of attribute rule.
Instance Method Summary collapse
-
#initialize(rule:, location: nil) ⇒ InlineRule
constructor
A new instance of InlineRule.
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
#location ⇒ Object
Returns the value of attribute location.
155 156 157 |
# File 'lib/collie/ast.rb', line 155 def location @location end |
#rule ⇒ Object
Returns the value of attribute rule.
155 156 157 |
# File 'lib/collie/ast.rb', line 155 def rule @rule end |