Class: SimpleFeed::Providers::Redis::Driver::MockRedis

Inherits:
Object
  • Object
show all
Defined in:
lib/simplefeed/providers/redis/driver.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &block) ⇒ Object


133
134
135
# File 'lib/simplefeed/providers/redis/driver.rb', line 133

def method_missing(name, *args, &block)
  puts "calling redis.#{name}(#{args.to_s.gsub(/[\[\]]/, '')}) { #{block ? block.call : nil} }"
end