module StockMarketDays
Constants
- MARKET_DAYS_FILE
- VERSION
Public Instance Methods
is_market_day?(date = Date.today)
click to toggle source
# File lib/stock_market_days.rb, line 10 def is_market_day?(date = Date.today) @@default_calculator.is_market_day?(date) end
market_days_between(begin_date, end_date)
click to toggle source
# File lib/stock_market_days.rb, line 14 def market_days_between(begin_date, end_date) @@default_calculator.market_days_between(begin_date, end_date) end
market_days_from(begin_date, days)
click to toggle source
# File lib/stock_market_days.rb, line 18 def market_days_from(begin_date, days) @@default_calculator.market_days_from(begin_date, days) end
next_market_day(from_date=Date.today)
click to toggle source
# File lib/stock_market_days.rb, line 22 def next_market_day(from_date=Date.today) @@default_calculator.market_days_from(from_date, 1) end