Class: Yaparc::CR

Inherits:
Object
  • Object
show all
Includes:
Parsable
Defined in:
lib/yaparc.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 Attribute Summary

Attributes included from Parsable

#tree

Instance Method Summary collapse

Methods included from Parsable

#parse

Constructor Details

#initializeCR

Returns a new instance of CR.



364
365
366
367
368
# File 'lib/yaparc.rb', line 364

def initialize
  @parser = lambda do |input|
    Regex.new(/\A[ \t]+[\n][ \t\n]+/)
  end
end