Class: Month
Constant Summary
Constants inherited from Duration
Duration::MULTIPLES, Duration::UNITS, Duration::VERSION
Instance Attribute Summary
Attributes inherited from Duration
#days, #hours, #minutes, #months, #seconds, #total, #weeks, #years
Instance Method Summary collapse
-
#initialize ⇒ Month
constructor
A new instance of Month.
Methods inherited from Duration
#%, #*, #+, #-, #/, #<=>, #blank?, #format, #iso8601, #present?
Constructor Details
#initialize ⇒ Month
Returns a new instance of Month.
8 9 10 |
# File 'lib/duration/time_units/month.rb', line 8 def initialize super(1) end |