class January
Public Class Methods
of(year)
click to toggle source
# File lib/january.rb, line 3 def self.of(year) January.for("1.1.#{year}") end
Public Instance Methods
month()
click to toggle source
# File lib/january.rb, line 15 def month 1 end
next()
click to toggle source
# File lib/january.rb, line 7 def next January.for("1.1.#{year.to_i + 1}") end
previous()
click to toggle source
# File lib/january.rb, line 11 def previous January.for("1.1.#{year.to_i - 1}") end
year()
click to toggle source
# File lib/january.rb, line 19 def year start_date.year end