Class: GEDCOM_DATE_PARSER::GEDDateGreg
- Inherits:
-
Object
- Object
- GEDCOM_DATE_PARSER::GEDDateGreg
- Defined in:
- lib/gedcom_ruby/date_parser.rb
Overview
Gregorian Date Class
Instance Attribute Summary collapse
-
#adbc ⇒ Object
Returns the value of attribute adbc.
-
#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.
-
#year2 ⇒ Object
Returns the value of attribute year2.
Instance Method Summary collapse
-
#initialize(flg, d, m, y, y2, adbc) ⇒ GEDDateGreg
constructor
A new instance of GEDDateGreg.
Constructor Details
#initialize(flg, d, m, y, y2, adbc) ⇒ GEDDateGreg
Returns a new instance of GEDDateGreg.
381 382 383 384 385 386 387 388 |
# File 'lib/gedcom_ruby/date_parser.rb', line 381 def initialize(flg, d, m, y, y2, adbc) @flags = flg @day = d @month = m @year = y @year2 = y2 @adbc = adbc end |
Instance Attribute Details
#adbc ⇒ Object
Returns the value of attribute adbc.
380 381 382 |
# File 'lib/gedcom_ruby/date_parser.rb', line 380 def adbc @adbc end |
#day ⇒ Object
Returns the value of attribute day.
380 381 382 |
# File 'lib/gedcom_ruby/date_parser.rb', line 380 def day @day end |
#flags ⇒ Object
Returns the value of attribute flags.
380 381 382 |
# File 'lib/gedcom_ruby/date_parser.rb', line 380 def flags @flags end |
#month ⇒ Object
Returns the value of attribute month.
380 381 382 |
# File 'lib/gedcom_ruby/date_parser.rb', line 380 def month @month end |
#year ⇒ Object
Returns the value of attribute year.
380 381 382 |
# File 'lib/gedcom_ruby/date_parser.rb', line 380 def year @year end |
#year2 ⇒ Object
Returns the value of attribute year2.
380 381 382 |
# File 'lib/gedcom_ruby/date_parser.rb', line 380 def year2 @year2 end |