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