Class: GEDCOM_DATE_PARSER::Token
- Inherits:
-
Object
- Object
- GEDCOM_DATE_PARSER::Token
- Defined in:
- lib/gedcom_ruby/date_parser.rb
Instance Attribute Summary collapse
-
#general ⇒ Object
Returns the value of attribute general.
-
#lexeme ⇒ Object
Returns the value of attribute lexeme.
-
#specific ⇒ Object
Returns the value of attribute specific.
Instance Method Summary collapse
-
#initialize(lex, gen, spec) ⇒ Token
constructor
A new instance of Token.
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
#general ⇒ Object
Returns the value of attribute general.
217 218 219 |
# File 'lib/gedcom_ruby/date_parser.rb', line 217 def general @general end |
#lexeme ⇒ Object
Returns the value of attribute lexeme.
217 218 219 |
# File 'lib/gedcom_ruby/date_parser.rb', line 217 def lexeme @lexeme end |
#specific ⇒ Object
Returns the value of attribute specific.
217 218 219 |
# File 'lib/gedcom_ruby/date_parser.rb', line 217 def specific @specific end |