Class: IsItOpenCoffeeTomorrow::Application
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- IsItOpenCoffeeTomorrow::Application
- Defined in:
- lib/isitopencoffeetomorrow.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.configure {|_self| ... } ⇒ Object
8 9 10 11 |
# File 'lib/isitopencoffeetomorrow.rb', line 8 def self.configure set :skip_dates, [] yield self end |
Instance Method Details
#occ_from(occ_date, by) ⇒ Object
49 50 51 52 53 54 55 56 57 |
# File 'lib/isitopencoffeetomorrow.rb', line 49 def occ_from occ_date, by skip_dates = settings.skip_dates while skip_dates.include? occ_date.strftime('%Y-%m-%d') occ_date = occ_date.advance by end occ_date end |