Class: Date
- Inherits:
-
Object
- Object
- Date
- Includes:
- WeekDayCoreExt
- Defined in:
- lib/core_ext.rb,
lib/core_ext.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#to_month ⇒ Object
Creates a Month object of the current month.
Methods included from WeekDayCoreExt
#is_weekday?, #to_weekday, #to_weekday!
Instance Method Details
#to_month ⇒ Object
Creates a Month object of the current month
7 8 9 |
# File 'lib/core_ext.rb', line 7 def to_month Month.new(self) end |