Class: Date

Inherits:
Object show all
Defined in:
lib/vex/base/time/date_ext.rb

Defined Under Namespace

Modules: Etest

Instance Method Summary collapse

Instance Method Details

#first_of_monthObject



2
3
4
# File 'lib/vex/base/time/date_ext.rb', line 2

def first_of_month
  self - self.day + 1
end