Module: Edtf::Humanize::Interval
- Includes:
- Formats
- Defined in:
- lib/edtf/humanize/interval.rb
Instance Method Summary collapse
Instance Method Details
#humanize ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/edtf/humanize/interval.rb', line 7 def humanize "#{apply_if_approximate(self.from)}"\ "#{simple_date_format(self.from)}"\ "#{Edtf::Humanize.configuration.interval_connector}"\ "#{apply_if_approximate(self.to)}"\ "#{simple_date_format(self.to)}" end |