Class: Yaparc::WhiteSpace

Inherits:
Object
  • Object
show all
Includes:
Parsable
Defined in:
lib/yaparc/white_space.rb

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 Method Summary collapse

Methods included from Parsable

#parse

Constructor Details

#initializeWhiteSpace

Returns a new instance of WhiteSpace.



7
8
9
# File 'lib/yaparc/white_space.rb', line 7

def initialize
  @parser = proc { Regex.new(/\A[\t\n ]*/) }
end