Class: DateUtils::Day
- Inherits:
-
Object
- Object
- DateUtils::Day
- Defined in:
- lib/date_utils.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
readonly
Returns the value of attribute date.
Instance Method Summary collapse
-
#initialize(date = nil) ⇒ Day
constructor
A new instance of Day.
Constructor Details
#initialize(date = nil) ⇒ Day
Returns a new instance of Day.
164 165 166 |
# File 'lib/date_utils.rb', line 164 def initialize(date=nil) @date = date || Date.today end |
Instance Attribute Details
#date ⇒ Object (readonly)
Returns the value of attribute date.
162 163 164 |
# File 'lib/date_utils.rb', line 162 def date @date end |