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.
157 158 159 160 161 162 |
# File 'lib/collie/ast.rb', line 157 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.
155 156 157 |
# File 'lib/collie/ast.rb', line 155 def alternatives @alternatives end |
#location ⇒ Object
Returns the value of attribute location.
155 156 157 |
# File 'lib/collie/ast.rb', line 155 def location @location end |
#name ⇒ Object
Returns the value of attribute name.
155 156 157 |
# File 'lib/collie/ast.rb', line 155 def name @name end |
#parameters ⇒ Object
Returns the value of attribute parameters.
155 156 157 |
# File 'lib/collie/ast.rb', line 155 def parameters @parameters end |