Module: HaystackWorker::Surpluses
- Included in:
- HaystackWorker
- Defined in:
- lib/haystack_worker/surpluses.rb
Instance Method Summary collapse
Instance Method Details
#surpluses(*ranges) ⇒ Object
2 3 4 5 |
# File 'lib/haystack_worker/surpluses.rb', line 2 def surpluses(*ranges) validate(ranges) _surpluses(ranges.map { |r| [r.min, r.max] }) end |