Class: GEDCOM_DATE_PARSER::Token

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lex, gen, spec) ⇒ Token

Returns a new instance of Token.



218
219
220
221
222
# File 'lib/gedcom_ruby/date_parser.rb', line 218

def initialize(lex, gen, spec)
  @lexeme = lex
  @general = gen
  @specific = spec
end

Instance Attribute Details

#generalObject

Returns the value of attribute general.



217
218
219
# File 'lib/gedcom_ruby/date_parser.rb', line 217

def general
  @general
end

#lexemeObject

Returns the value of attribute lexeme.



217
218
219
# File 'lib/gedcom_ruby/date_parser.rb', line 217

def lexeme
  @lexeme
end

#specificObject

Returns the value of attribute specific.



217
218
219
# File 'lib/gedcom_ruby/date_parser.rb', line 217

def specific
  @specific
end