Parent

Class Index [+]

Quicksearch

Merb::Test::MultipartRequestHelper::Param

Attributes

key[RW]
value[RW]

Public Class Methods

new(key, value) click to toggle source

Parameters

key<~to_s>

The parameter key.

value<~to_s>

The parameter value.

    # File lib/merb-core/test/helpers/multipart_request_helper.rb, line 11
11:     def initialize(key, value)
12:       @key   = key
13:       @value = value
14:     end

Public Instance Methods

to_multipart() click to toggle source

Returns

String

The parameter in a form suitable for a multipart request.

    # File lib/merb-core/test/helpers/multipart_request_helper.rb, line 18
18:     def to_multipart
19:       return %(Content-Disposition: form-data; name="#{key}"\r\n\r\n#{value}\r\n)
20:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.