Class: Yaparc::Symbol
Constant Summary
Constants included from Parsable
Parsable::IS_ALPHANUM, Parsable::IS_CR, Parsable::IS_DIGIT, Parsable::IS_LOWER, Parsable::IS_SPACE, Parsable::IS_WHITESPACE
Instance Attribute Summary
Attributes included from Parsable
Instance Method Summary collapse
-
#initialize(literal, args = {}) ⇒ Symbol
constructor
A new instance of Symbol.
Methods included from Parsable
Constructor Details
#initialize(literal, args = {}) ⇒ Symbol
Returns a new instance of Symbol.
590 591 592 593 594 |
# File 'lib/yaparc.rb', line 590 def initialize(literal, args = {}) @parser = lambda do |input| Literal.new(literal) end end |