class MultiRedis::Step

Public Class Methods

new(target, type, block) click to toggle source
# File lib/multi_redis/step.rb, line 5
def initialize target, type, block
  @target, @type, @block = target, type, block
end

Public Instance Methods

execute(context, *args) click to toggle source
# File lib/multi_redis/step.rb, line 9
def execute context, *args
  @target.instance_exec *args.unshift(context), &@block
end
type() click to toggle source
# File lib/multi_redis/step.rb, line 13
def type
  @type
end