Class: Date
- Inherits:
-
Object
- Object
- Date
- Defined in:
- lib/treasurer/report.rb,
lib/treasurer/analysis.rb
Instance Method Summary collapse
Instance Method Details
#days_in_month ⇒ Object
2 3 4 |
# File 'lib/treasurer/analysis.rb', line 2 def days_in_month self.class.new(year, month, -1).mday end |
#days_in_year ⇒ Object
5 6 7 |
# File 'lib/treasurer/analysis.rb', line 5 def days_in_year self.class.new(year, 12, -1).yday end |
#inspect ⇒ Object
20 21 22 |
# File 'lib/treasurer/report.rb', line 20 def inspect "Date.parse('#{to_s}')" end |