class BusinessPeriod::Config

Attributes

locale[RW]
work_days[RW]

Public Class Methods

locale() click to toggle source
# File lib/business_period/config.rb, line 15
def self.locale
  instance.locale.class == Proc ? instance.locale.call : instance.locale
end
locale=(str) click to toggle source
# File lib/business_period/config.rb, line 11
def self.locale=(str)
  instance.locale = str
end
work_days() click to toggle source
# File lib/business_period/config.rb, line 23
def self.work_days
  instance.work_days.class == Proc ? instance.work_days.call : instance.work_days
end
work_days=(arr) click to toggle source
# File lib/business_period/config.rb, line 19
def self.work_days=(arr)
  instance.work_days = arr
end