Class: Yaparc::WhiteSpace
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 ⇒ WhiteSpace
constructor
A new instance of WhiteSpace.
Methods included from Parsable
Constructor Details
#initialize ⇒ WhiteSpace
Returns a new instance of WhiteSpace.
374 375 376 377 378 379 |
# File 'lib/yaparc.rb', line 374 def initialize @parser = lambda do |input| #Many.new(Satisfy.new(IS_WHITESPACE),'') Regex.new(/\A[\t\n ]*/) end end |