Class: ABNF::Parser::Node::Single
- Inherits:
-
Object
- Object
- ABNF::Parser::Node::Single
- Includes:
- ABNF::Parser::Node
- Defined in:
- lib/abnf/parser/node.rb
Instance Attribute Summary collapse
-
#abnf ⇒ Object
readonly
Returns the value of attribute abnf.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text, abnf) ⇒ Single
constructor
A new instance of Single.
Methods included from ABNF::Parser::Node
#==, #[], alternation, #child_count, #children, concatenation, #each, #octets, pattern_match, repetition, terminal
Constructor Details
#initialize(text, abnf) ⇒ Single
Returns a new instance of Single.
105 106 107 108 |
# File 'lib/abnf/parser/node.rb', line 105 def initialize text, abnf @text = text @abnf = abnf end |
Instance Attribute Details
#abnf ⇒ Object (readonly)
Returns the value of attribute abnf.
102 103 104 |
# File 'lib/abnf/parser/node.rb', line 102 def abnf @abnf end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
103 104 105 |
# File 'lib/abnf/parser/node.rb', line 103 def text @text end |