Class: Generated::Rule
- Inherits:
-
Object
- Object
- Generated::Rule
- Defined in:
- lib/ruby_grammar_builder/generated/rule.rb
Direct Known Subclasses
BeginEndRule, BeginWhileRule, IncludeRule, MatchRule, NameRule, PatternRule
Instance Attribute Summary collapse
-
#location ⇒ String
The location of this rule.
Instance Method Summary collapse
-
#initialize(location) ⇒ Rule
constructor
A new instance of Rule.
Constructor Details
#initialize(location) ⇒ Rule
Returns a new instance of Rule.
8 9 10 |
# File 'lib/ruby_grammar_builder/generated/rule.rb', line 8 def initialize(location) @location = location end |
Instance Attribute Details
#location ⇒ String
Returns The location of this rule.
6 7 8 |
# File 'lib/ruby_grammar_builder/generated/rule.rb', line 6 def location @location end |