Class: FileStore::Instance
- Inherits:
-
Object
- Object
- FileStore::Instance
- Defined in:
- lib/file_store/instance.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args, &block) ⇒ Object (private)
19 20 21 22 23 24 25 26 |
# File 'lib/file_store/instance.rb', line 19 def method_missing(meth, *args, &block) if provider.respond_to?(meth) meth = provider.mocked? ? "mock_#{meth}" : meth provider.public_send(meth, *args, &block) else super end end |