class Feriados::Rules::FixDate
Attributes
Public Class Methods
Source
# 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
Calls superclass method
Public Instance Methods
Source
# File lib/feriados/rules/fix_date.rb, line 11 def holiday?(date) year == date.year && month == date.month && day == date.day end