Class: Range
- Inherits:
-
Object
- Object
- Range
- Defined in:
- lib/time_range/core_ext/range.rb
Overview
Reopens the Range class from the core lib to include methods to converting to TimeRange.
Direct Known Subclasses
Instance Method Summary collapse
-
#to_time_range ⇒ TimeRange
Converts a Range of Times into a TimeRange.
Instance Method Details
#to_time_range ⇒ TimeRange
Converts a Range of Times into a TimeRange.
11 12 13 |
# File 'lib/time_range/core_ext/range.rb', line 11 def to_time_range TimeRange.new(self.begin, self.end, exclude_end?) end |