Class: Collie::AST::ParameterizedRule
- Inherits:
-
Object
- Object
- Collie::AST::ParameterizedRule
- Defined in:
- lib/collie/ast.rb
Overview
Lrama extension: Parameterized rule
Instance Attribute Summary collapse
-
#alternatives ⇒ Object
Returns the value of attribute alternatives.
-
#location ⇒ Object
Returns the value of attribute location.
-
#name ⇒ Object
Returns the value of attribute name.
-
#parameters ⇒ Object
Returns the value of attribute parameters.
Instance Method Summary collapse
-
#initialize(name:, parameters:, alternatives:, location: nil) ⇒ ParameterizedRule
constructor
A new instance of ParameterizedRule.
Constructor Details
#initialize(name:, parameters:, alternatives:, location: nil) ⇒ ParameterizedRule
Returns a new instance of ParameterizedRule.
145 146 147 148 149 150 |
# File 'lib/collie/ast.rb', line 145 def initialize(name:, parameters:, alternatives:, location: nil) @name = name @parameters = parameters @alternatives = alternatives @location = location end |
Instance Attribute Details
#alternatives ⇒ Object
Returns the value of attribute alternatives.
143 144 145 |
# File 'lib/collie/ast.rb', line 143 def alternatives @alternatives end |
#location ⇒ Object
Returns the value of attribute location.
143 144 145 |
# File 'lib/collie/ast.rb', line 143 def location @location end |
#name ⇒ Object
Returns the value of attribute name.
143 144 145 |
# File 'lib/collie/ast.rb', line 143 def name @name end |
#parameters ⇒ Object
Returns the value of attribute parameters.
143 144 145 |
# File 'lib/collie/ast.rb', line 143 def parameters @parameters end |