Class: TimeSpanner::TimeUnits::Century
- Inherits:
-
CalendarUnit
- Object
- Unit
- CalendarUnit
- TimeSpanner::TimeUnits::Century
- Defined in:
- lib/time_spanner/time_units/century.rb
Instance Attribute Summary
Attributes inherited from CalendarUnit
Attributes inherited from Unit
#amount, #duration, #position, #rest
Instance Method Summary collapse
-
#initialize ⇒ Century
constructor
A new instance of Century.
-
#plural_name ⇒ Object
Override!.
Methods inherited from CalendarUnit
Methods inherited from Unit
Constructor Details
#initialize ⇒ Century
6 7 8 |
# File 'lib/time_spanner/time_units/century.rb', line 6 def initialize super 2 end |
Instance Method Details
#plural_name ⇒ Object
Override!
11 12 13 |
# File 'lib/time_spanner/time_units/century.rb', line 11 def plural_name :centuries end |