Class: GEDCOM_DATE_PARSER::GEDParserState

Inherits:
Object
  • Object
show all
Defined in:
lib/gedcom_ruby/date_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(buf, lgt, lst, p) ⇒ GEDParserState

Returns a new instance of GEDParserState.



370
371
372
373
374
375
# File 'lib/gedcom_ruby/date_parser.rb', line 370

def initialize( buf, lgt, lst, p )
  @buffer = buf
  @lastGeneralToken = lgt
  @lastSpecificToken = lst
  @pos = p
end

Instance Attribute Details

#bufferObject

Returns the value of attribute buffer.



369
370
371
# File 'lib/gedcom_ruby/date_parser.rb', line 369

def buffer
  @buffer
end

#lastGeneralTokenObject

Returns the value of attribute lastGeneralToken.



369
370
371
# File 'lib/gedcom_ruby/date_parser.rb', line 369

def lastGeneralToken
  @lastGeneralToken
end

#lastSpecificTokenObject

Returns the value of attribute lastSpecificToken.



369
370
371
# File 'lib/gedcom_ruby/date_parser.rb', line 369

def lastSpecificToken
  @lastSpecificToken
end

#posObject

Returns the value of attribute pos.



369
370
371
# File 'lib/gedcom_ruby/date_parser.rb', line 369

def pos
  @pos
end