Class: Calrom::Day

Inherits:
DateRange show all
Defined in:
lib/calrom/date_range.rb

Instance Method Summary collapse

Constructor Details

#initialize(date) ⇒ Day

Returns a new instance of Day.



92
93
94
# File 'lib/calrom/date_range.rb', line 92

def initialize(date)
  super date, date
end

Instance Method Details

#each_month {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Calrom::Day)

    the object that the method was called on



100
101
102
# File 'lib/calrom/date_range.rb', line 100

def each_month
  yield self
end

#to_sObject



96
97
98
# File 'lib/calrom/date_range.rb', line 96

def to_s
  first.to_s
end