Class: Year

Inherits:
Years show all
Defined in:
lib/duration/time_units/year.rb

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

Methods inherited from Duration

#%, #*, #+, #-, #/, #<=>, #blank?, #format, #iso8601, #present?

Constructor Details

#initializeYear

Returns a new instance of Year.



8
9
10
# File 'lib/duration/time_units/year.rb', line 8

def initialize
	super(1)
end