class Redis::Future
Constants
- FutureNotReady
Public Class Methods
new(command, coerce)
click to toggle source
# File lib/redis/pipeline.rb, line 82 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 92 def _set(object) @object = @coerce ? @coerce.call(object) : object value end
class()
click to toggle source
# File lib/redis/pipeline.rb, line 106 def class Future end
inspect()
click to toggle source
# File lib/redis/pipeline.rb, line 88 def inspect "<Redis::Future #{@command.inspect}>" end
is_a?(other)
click to toggle source
# File lib/redis/pipeline.rb, line 102 def is_a?(other) self.class.ancestors.include?(other) end
value()
click to toggle source
# File lib/redis/pipeline.rb, line 97 def value ::Kernel.raise(@object) if @object.is_a?(::StandardError) @object end