Method: Datebox::Relative.year_to_date
- Defined in:
- lib/datebox/relative.rb
.year_to_date ⇒ Object
161 162 163 164 165 166 |
# File 'lib/datebox/relative.rb', line 161 def year_to_date new Proc.new { |relative_to| year_start = Date.parse("#{relative_to.year}-01-01") Period.new(year_start, relative_to) }, __method__.to_s end |