class Redis::Future
Constants
- FutureNotReady
Public Class Methods
new(command, coerce)
click to toggle source
# File lib/redis/pipeline.rb, line 81 def initialize(command, coerce) @command = command @object = FutureNotReady @coerce = coerce end
Public Instance Methods
_set(object)
click to toggle source
# File lib/redis/pipeline.rb, line 91 def _set(object) @object = @coerce ? @coerce.call(object) : object value end
class()
click to toggle source
# File lib/redis/pipeline.rb, line 105 def class Future end
inspect()
click to toggle source
# File lib/redis/pipeline.rb, line 87 def inspect "<Redis::Future #{@command.inspect}>" end
is_a?(other)
click to toggle source
# File lib/redis/pipeline.rb, line 101 def is_a?(other) self.class.ancestors.include?(other) end
value()
click to toggle source
# File lib/redis/pipeline.rb, line 96 def value ::Kernel.raise(@object) if @object.is_a?(::StandardError) @object end