Class: Date

Inherits:
Object
  • Object
show all
Defined in:
lib/core_extensions.rb

Instance Method Summary collapse

Instance Method Details

#business_day?Boolean

Returns:

  • (Boolean)


31
32
33
34
35
# File 'lib/core_extensions.rb', line 31

def business_day?
  return false if self.holiday?(:za)
  return false if self.saturday? || self.sunday?
  return true
end