lib/edtf/interval.rb
# Returns the Interval as a Range.
Returns the Interval as a Range.
Returns the Interval as a Range .
def to_range
      case
      when open?, unknown?
        nil
      else
        Range.new(unknown_start? ? Date.new : @from, max)
      end
    end
def to_range case when open? , unknown? nil else Range . new ( unknown_start? ? Date . new : @from , max ) end end
Returns the Interval as a Range.
Returns the Interval as a Range .