Class: TimeSpanner::TimeUnits::Century

Inherits:
CalendarUnit show all
Defined in:
lib/time_spanner/time_units/century.rb

Instance Attribute Summary

Attributes inherited from CalendarUnit

#from, #to

Attributes inherited from Unit

#amount, #duration, #position, #rest

Instance Method Summary collapse

Methods inherited from CalendarUnit

#calculate

Methods inherited from Unit

#<=>, #reverse!

Constructor Details

#initializeCentury

Returns a new instance of Century.



6
7
8
# File 'lib/time_spanner/time_units/century.rb', line 6

def initialize
  super 2
end

Instance Method Details

#plural_nameObject

Override!



11
12
13
# File 'lib/time_spanner/time_units/century.rb', line 11

def plural_name
  :centuries
end