class Mechanize::FileConnection
Wrapper to make a file URI work like an http URI
Public Class Methods
new(*a)
click to toggle source
Calls superclass method
# File lib/mechanize/file_connection.rb, line 8 def self.new *a @instance ||= super end
Public Instance Methods
request(uri, request) { |file_response uri_unescape path| ... }
click to toggle source
# File lib/mechanize/file_connection.rb, line 12 def request uri, request yield Mechanize::FileResponse.new Mechanize::Util.uri_unescape uri.path end