Skip to content
This repository has been archived by the owner on Aug 20, 2019. It is now read-only.

Commit

Permalink
Fix holiday method.
Browse files Browse the repository at this point in the history
  • Loading branch information
oris committed Apr 10, 2012
1 parent abba44a commit 1208c08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/calendar.rb
Expand Up @@ -40,7 +40,8 @@ def no_work?(date)

def holiday?(date)
date = to_date(date)
HOLIDAYS.include?(date)
holidays = HOLIDAYS.map {|h| to_date(h)}
holidays.include?(date)
end

def weekend?(date)
Expand Down

0 comments on commit 1208c08

Please sign in to comment.