Module: FileProxy::Shim
- Defined in:
- lib/file_proxy/shim.rb
Class Method Summary collapse
Class Method Details
.included(into) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/file_proxy/shim.rb', line 3 def self.included into class << into def open file_name, *args, &blk uri = URI.parse file_name puts uri.scheme.inspect proxy = Proxy.new uri.scheme proxy.open file_name, *args, &blk end end end |