Method: Orchestrate::Collection::KeyValueList#before

Defined in:
lib/orchestrate/collection.rb

#before(end_key) ⇒ KeyValueList

Sets the exclusive end key for enumeration over the KeyValue items in the collection. Overwrites any value given to #end.

Parameters:

  • end_key (#to_s)

    The exclusive end of the key range.

Returns:



283
284
285
# File 'lib/orchestrate/collection.rb', line 283

def before(end_key)
  self.class.new(collection, range.merge({end: end_key, end_inclusive: false}))
end