Class: ABNF::Parser::Node::Alternation
- Inherits:
-
Object
- Object
- ABNF::Parser::Node::Alternation
- Includes:
- ABNF::Parser::Node
- Defined in:
- lib/abnf/parser/node.rb
Instance Attribute Summary collapse
-
#abnf ⇒ Object
readonly
Returns the value of attribute abnf.
-
#match ⇒ Object
readonly
Returns the value of attribute match.
Instance Method Summary collapse
-
#initialize(match, abnf) ⇒ Alternation
constructor
A new instance of Alternation.
- #text ⇒ Object
Methods included from ABNF::Parser::Node
#==, alternation, concatenation, #octets, pattern_match, repetition, terminal
Constructor Details
#initialize(match, abnf) ⇒ Alternation
Returns a new instance of Alternation.
41 42 43 44 |
# File 'lib/abnf/parser/node.rb', line 41 def initialize match, abnf @abnf = abnf @match = match end |
Instance Attribute Details
#abnf ⇒ Object (readonly)
Returns the value of attribute abnf.
38 39 40 |
# File 'lib/abnf/parser/node.rb', line 38 def abnf @abnf end |
#match ⇒ Object (readonly)
Returns the value of attribute match.
39 40 41 |
# File 'lib/abnf/parser/node.rb', line 39 def match @match end |
Instance Method Details
#text ⇒ Object
46 47 48 |
# File 'lib/abnf/parser/node.rb', line 46 def text match.text end |