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, concatenation, #octets, pattern_match, repetition, terminal
Constructor Details
#initialize(text, abnf) ⇒ Single
Returns a new instance of Single.
101 102 103 104 |
# File 'lib/abnf/parser/node.rb', line 101 def initialize text, abnf @text = text @abnf = abnf end |
Instance Attribute Details
#abnf ⇒ Object (readonly)
Returns the value of attribute abnf.
98 99 100 |
# File 'lib/abnf/parser/node.rb', line 98 def abnf @abnf end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
99 100 101 |
# File 'lib/abnf/parser/node.rb', line 99 def text @text end |