Class: UniqSysOmega::Tariffs::SortableRange
- Defined in:
- lib/repeating_filter.rb
Instance Attribute Summary collapse
-
#filter ⇒ Object
Returns the value of attribute filter.
Instance Method Summary collapse
Methods inherited from Range
Instance Attribute Details
#filter ⇒ Object
Returns the value of attribute filter.
6 7 8 |
# File 'lib/repeating_filter.rb', line 6 def filter @filter end |
Instance Method Details
#<=>(other) ⇒ Object
8 9 10 |
# File 'lib/repeating_filter.rb', line 8 def <=>(other) self.begin <=> other.begin end |
#as_range ⇒ Object
12 13 14 |
# File 'lib/repeating_filter.rb', line 12 def as_range Range.new(self.begin, self.end, self.exclude_end?) end |