Class: Yaparc::Natural
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(args = {}) ⇒ Natural
constructor
A new instance of Natural.
Methods included from Parsable
Constructor Details
#initialize(args = {}) ⇒ Natural
Returns a new instance of Natural.
581 582 583 584 585 |
# File 'lib/yaparc.rb', line 581 def initialize(args = {}) @parser = lambda do |input| Tokenize.new(Nat.new, args) end end |