Sha256: 085926ed0bcca4af389f6003377e2117add6219453c7effbb377df32b6c6bdbc

Contents?: true

Size: 342 Bytes

Versions: 24

Compression:

Stored size: 342 Bytes

Contents

##
# A wrapper for a file URI that makes a request that works like a
# Net::HTTPRequest

class Mechanize::FileRequest

  attr_accessor :uri

  def initialize uri
    @uri = uri
  end

  def add_field *a
  end

  alias []= add_field

  def path
    @uri.path
  end

  def each_header
  end

  def response_body_permitted?
    true
  end

end

Version data entries

24 entries across 24 versions & 3 rubygems

Version Path
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/mechanize-2.3/lib/mechanize/file_request.rb
mechanize-2.3 lib/mechanize/file_request.rb
mechanize-2.2.1 lib/mechanize/file_request.rb
mechanize-2.2 lib/mechanize/file_request.rb