class Dekatrian::Date
Attributes
day[RW]
month[R]
year[RW]
Public Class Methods
new(year = 1, month = 1, day = 1)
click to toggle source
# File lib/dekatrian/date.rb, line 7 def initialize(year = 1, month = 1, day = 1) self.year = year self.month = month self.day = day end
Private Instance Methods
day=(value)
click to toggle source
# File lib/dekatrian/date.rb, line 23 def day=(value) raise ArgumentError, "invalid day" if value < 1 || value > 28 @day = value end
month=(value)
click to toggle source
# File lib/dekatrian/date.rb, line 17 def month=(value) raise ArgumentError, "invalid month" if value < 1 || value > 13 @month = value end