class Date
Public Instance Methods
days_in_month()
click to toggle source
# File lib/midnight.rb, line 31 def days_in_month d,m,y = mday,month,year d += 1 while Date.valid_civil?(y,m,d) d - 1 end
# File lib/midnight.rb, line 31 def days_in_month d,m,y = mday,month,year d += 1 while Date.valid_civil?(y,m,d) d - 1 end