class Feriados::Rules::DayOfMonth
Attributes
day[R]
month[R]
Public Class Methods
new(day, month, name = nil)
click to toggle source
Calls superclass method
# File lib/feriados/rules/day_of_month.rb, line 4 def initialize(day, month, name = nil) super(name) @day = day @month = month end
Public Instance Methods
holiday?(date)
click to toggle source
# File lib/feriados/rules/day_of_month.rb, line 10 def holiday?(date) day == date.day && month == date.month end
Protected Instance Methods
state()
click to toggle source
# File lib/feriados/rules/day_of_month.rb, line 18 def state [day, month] end