Class: SimpleFeed::Providers::Redis::Driver::MockRedis
- Inherits:
-
Object
- Object
- SimpleFeed::Providers::Redis::Driver::MockRedis
- 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, **_opts, &block) ⇒ Object
129 130 131 |
# File 'lib/simplefeed/providers/redis/driver.rb', line 129 def method_missing(name, *args, **_opts, &block) puts "calling redis.#{name}(#{args.to_s.gsub(/[\[\]]/, '')}) { #{block ? block.call : nil} }" end |