Method: Mods::Date#as_range

Defined in:
lib/mods/date.rb

#as_rangeObject

Return a range, with the min point as the earliest possible date and the max as the latest possible date (useful particularly for ranges and uncertainty)

Parameters:

  • (Range)


325
326
327
328
329
# File 'lib/mods/date.rb', line 325

def as_range
  return unless earliest_date && latest_date

  earliest_date..latest_date
end