Module: RedisRing::Client::OperationDefinitions::GatherOperations

Defined in:
lib/redis_ring/client/operation_definitions.rb

Instance Method Summary collapse

Instance Method Details

#last_result(array) ⇒ Object



17
18
19
# File 'lib/redis_ring/client/operation_definitions.rb', line 17

def last_result(array)
  return array.last
end

#sum(array) ⇒ Object



21
22
23
# File 'lib/redis_ring/client/operation_definitions.rb', line 21

def sum(array)
  return array.reduce(:+)
end