Class: Fixnum
- Inherits:
-
Object
- Object
- Fixnum
- Includes:
- BusinessTime
- Defined in:
- lib/business_time/core_ext/fixnum.rb
Overview
hook into fixnum so we can say things like: 5.business_hours.from_now 7.business_days.ago 3.business_days.after(some_date) 4.business_hours.before(some_date_time)
Constant Summary
Constants included from BusinessTime
Instance Method Summary collapse
- #business_days ⇒ Object (also: #business_day)
- #business_hours ⇒ Object (also: #business_hour)
Instance Method Details
#business_days ⇒ Object Also known as: business_day
14 15 16 |
# File 'lib/business_time/core_ext/fixnum.rb', line 14 def business_days BusinessDays.new(self) end |
#business_hours ⇒ Object Also known as: business_hour
9 10 11 |
# File 'lib/business_time/core_ext/fixnum.rb', line 9 def business_hours BusinessHours.new(self) end |