Class: ABNF::Compiler::Rule::Reference
- Inherits:
-
Object
- Object
- ABNF::Compiler::Rule::Reference
- Includes:
- ABNF::Compiler::Rule
- Defined in:
- lib/abnf/compiler/rule/reference.rb
Instance Attribute Summary collapse
-
#rulename ⇒ Object
readonly
Returns the value of attribute rulename.
Instance Method Summary collapse
-
#initialize(rulename) ⇒ Reference
constructor
A new instance of Reference.
- #parse ⇒ Object
Methods included from ABNF::Compiler::Rule
Constructor Details
#initialize(rulename) ⇒ Reference
Returns a new instance of Reference.
9 10 11 |
# File 'lib/abnf/compiler/rule/reference.rb', line 9 def initialize rulename @rulename = rulename end |
Instance Attribute Details
#rulename ⇒ Object (readonly)
Returns the value of attribute rulename.
7 8 9 |
# File 'lib/abnf/compiler/rule/reference.rb', line 7 def rulename @rulename end |
Instance Method Details
#parse ⇒ Object
13 14 15 |
# File 'lib/abnf/compiler/rule/reference.rb', line 13 def parse *; raise ParsingError, "Rule not found: #{rulename.inspect}" end |