Skip to content

Commit

Permalink
Merge pull request holidays#95 from ptrimble/fix_readme
Browse files Browse the repository at this point in the history
Fix spacing in README
  • Loading branch information
ppeble committed Mar 16, 2015
2 parents 3ece845 + daf99b3 commit cf5203b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,19 @@ Get informal holidays in February.
Load custom definitions file on the fly and use them immediately.

Load custom 'Company Founding' holiday on June 1st:
Holidays.load_custom('/home/user/holiday_definitions/custom_holidays.yaml')

date = Date.civil(2013,6,1)
Holidays.load_custom('/home/user/holiday_definitions/custom_holidays.yaml')

Holidays.on(date, :my_custom_region)
=> [{:name => 'Company Founding',...}]
date = Date.civil(2013,6,1)

Holidays.on(date, :my_custom_region)
=> [{:name => 'Company Founding',...}]

Custom definition files must match the format of the existing definition YAML files location in the 'data' directory.

Multiple files can also be passed:
Holidays.load_custom('/home/user/holidays/custom_holidays1.yaml', '/home/user/holidays/custom_holidays2.yaml')

Holidays.load_custom('/home/user/holidays/custom_holidays1.yaml', '/home/user/holidays/custom_holidays2.yaml')

### Extending Ruby's Date class

Expand Down

0 comments on commit cf5203b

Please sign in to comment.