class Redis::Future
Constants
- FutureNotReady
Public Class Methods
new(command, coerce, exception)
click to toggle source
# File lib/redis/pipeline.rb, line 83 def initialize(command, coerce, exception) @command = command @object = FutureNotReady @coerce = coerce @exception = exception end
Public Instance Methods
_set(object)
click to toggle source
# File lib/redis/pipeline.rb, line 94 def _set(object) @object = @coerce ? @coerce.call(object) : object value end
class()
click to toggle source
# File lib/redis/pipeline.rb, line 108 def class Future end
inspect()
click to toggle source
# File lib/redis/pipeline.rb, line 90 def inspect "<Redis::Future #{@command.inspect}>" end
is_a?(other)
click to toggle source
# File lib/redis/pipeline.rb, line 104 def is_a?(other) self.class.ancestors.include?(other) end
value()
click to toggle source
# File lib/redis/pipeline.rb, line 99 def value ::Kernel.raise(@object) if @exception && @object.is_a?(::StandardError) @object end