Class: GEDCOM_DATE_PARSER::GEDDateGeneral
- Inherits:
-
Object
- Object
- GEDCOM_DATE_PARSER::GEDDateGeneral
- Defined in:
- lib/gedcom_ruby/date_parser.rb
Overview
General Date Class
Instance Attribute Summary collapse
-
#day ⇒ Object
Returns the value of attribute day.
-
#flags ⇒ Object
Returns the value of attribute flags.
-
#month ⇒ Object
Returns the value of attribute month.
-
#year ⇒ Object
Returns the value of attribute year.
Instance Method Summary collapse
-
#initialize(flg, d, m, y) ⇒ GEDDateGeneral
constructor
A new instance of GEDDateGeneral.
Constructor Details
#initialize(flg, d, m, y) ⇒ GEDDateGeneral
Returns a new instance of GEDDateGeneral.
394 395 396 397 398 399 |
# File 'lib/gedcom_ruby/date_parser.rb', line 394 def initialize(flg, d, m, y) @flags = flg @day = d @month = m @year = y end |
Instance Attribute Details
#day ⇒ Object
Returns the value of attribute day.
393 394 395 |
# File 'lib/gedcom_ruby/date_parser.rb', line 393 def day @day end |
#flags ⇒ Object
Returns the value of attribute flags.
393 394 395 |
# File 'lib/gedcom_ruby/date_parser.rb', line 393 def flags @flags end |
#month ⇒ Object
Returns the value of attribute month.
393 394 395 |
# File 'lib/gedcom_ruby/date_parser.rb', line 393 def month @month end |
#year ⇒ Object
Returns the value of attribute year.
393 394 395 |
# File 'lib/gedcom_ruby/date_parser.rb', line 393 def year @year end |