class Range

Reopens the Range class from the core lib to include methods to converting to TimeRange.

@since 0.0.1

Public Instance Methods

to_time_range() click to toggle source

Converts a Range of Times into a TimeRange.

@return [TimeRange]

# File lib/time_range/core_ext/range.rb, line 11
def to_time_range
  TimeRange.new(self.begin, self.end, exclude_end?)
end