Module: FileProxy::Proxies::FileProxy

Defined in:
lib/file_proxy/proxies/file_proxy.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*args, &blk) ⇒ Object



8
9
10
# File 'lib/file_proxy/proxies/file_proxy.rb', line 8

def method_missing *args, &blk
  remote.send *args, &blk
end

Instance Method Details

#remoteObject



4
5
6
# File 'lib/file_proxy/proxies/file_proxy.rb', line 4

def remote
  @remote ||= SimpleDelegator.new(OriginalFile)
end