Class: ABNF::Parser::Node::Single

Inherits:
Object
  • Object
show all
Includes:
ABNF::Parser::Node
Defined in:
lib/abnf/parser/node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#abnfObject (readonly)

Returns the value of attribute abnf.



98
99
100
# File 'lib/abnf/parser/node.rb', line 98

def abnf
  @abnf
end

#textObject (readonly)

Returns the value of attribute text.



99
100
101
# File 'lib/abnf/parser/node.rb', line 99

def text
  @text
end