Results for: "remove_const"

The RubyGems version required by this gem

Called with encoding when the YAML stream starts. This method is called once per stream. A stream may contain multiple documents.

See the constants in Psych::Parser for the possible values of encoding.

No documentation available

Start a stream emission with encoding

See Psych::Handler#start_stream

No documentation available
No documentation available
No documentation available

Sends a GET request to the target and returns the HTTP response as a Net::HTTPResponse object. The target can either be specified as (uri, headers), or as (host, path, port = 80); so:

res = Net::HTTP.get_response(URI('http://www.example.com/index.html'))
print res.body

or:

res = Net::HTTP.get_response('www.example.com', '/index.html')
print res.body

you can also specify request headers:

Net::HTTP.get_response(URI('http://www.example.com/index.html'), { 'Accept' => 'text/html' })

Sends a POST request to the path.

Returns the response as a Net::HTTPResponse object.

When called with a block, the block is passed an HTTPResponse object. The body of that response will not have been read yet; the block can process it using HTTPResponse#read_body, if desired.

Returns the response.

This method never raises Net::* exceptions.

# example
response = http.request_post('/cgi-bin/nice.rb', 'datadatadata...')
p response.status
puts response.body          # body is already read in this case

# using block
http.request_post('/cgi-bin/nice.rb', 'datadatadata...') {|response|
  p response.status
  p response['content-type']
  response.read_body do |str|   # read body now
    print str
  end
}
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available

Register the Symbol command as a gem command.

Unregister the Symbol command as a gem command.

Is this dependency simply asking for the latest version of a gem?

A recommended version for use with a ~> Requirement.

Uninstalls gem spec

If response is an HTTP Success (2XX) response, yields the response if a block was given or shows the response body to the user.

If the response was not successful, shows an error to the user including the error_prefix and the response body.

No documentation available
No documentation available

This code is based directly on the Text gem implementation Returns a value representing the “cost” of transforming str1 into str2

No documentation available
No documentation available
Search took: 4ms  ·  Total Results: 3444