class Redis::Future
Constants
- FutureNotReady
Public Class Methods
new(command, transformation)
click to toggle source
# File lib/redis/pipeline.rb, line 103 def initialize(command, transformation) @command = command @transformation = transformation @object = FutureNotReady end
Public Instance Methods
_command()
click to toggle source
# File lib/redis/pipeline.rb, line 118 def _command @command end
_set(object)
click to toggle source
# File lib/redis/pipeline.rb, line 113 def _set(object) @object = @transformation ? @transformation.call(object) : object value end
class()
click to toggle source
# File lib/redis/pipeline.rb, line 131 def class Future end
inspect()
click to toggle source
# File lib/redis/pipeline.rb, line 109 def inspect "<Redis::Future #{@command.inspect}>" end
is_a?(other)
click to toggle source
# File lib/redis/pipeline.rb, line 127 def is_a?(other) self.class.ancestors.include?(other) end
value()
click to toggle source
# File lib/redis/pipeline.rb, line 122 def value ::Kernel.raise(@object) if @object.kind_of?(::RuntimeError) @object end