# File lib/redis/pipeline.rb, line 106 def initialize(command, transformation) @command = command @transformation = transformation @object = FutureNotReady end
# File lib/redis/pipeline.rb, line 121 def _command @command end
# File lib/redis/pipeline.rb, line 116 def _set(object) @object = @transformation ? @transformation.call(object) : object value end
# File lib/redis/pipeline.rb, line 134 def class Future end
# File lib/redis/pipeline.rb, line 112 def inspect "<Redis::Future #{@command.inspect}>" end
# File lib/redis/pipeline.rb, line 130 def is_a?(other) self.class.ancestors.include?(other) end
# File lib/redis/pipeline.rb, line 125 def value ::Kernel.raise(@object) if @object.kind_of?(::RuntimeError) @object end