Class: QuarterBoundaryDate

Inherits:
Date
  • Object
show all
Defined in:
lib/quarter_system/quarter_boundary_date.rb

Direct Known Subclasses

QuarterBeginDate, QuarterEndDate

Class Method Summary collapse

Class Method Details

.new(*args) ⇒ Object

args for Date#new are year, month, day, and an optional “day of calendar reform” just not gonna worry about day of calendar reform at all.



4
5
6
7
# File 'lib/quarter_system/quarter_boundary_date.rb', line 4

def self.new(*args)
  args.unshift(this_year) if args.size < 2
  super(*args)
end