Return the configuration information for key
.
Return value associated with key
from database.
Returns nil
if there is no such key
.
See fetch
for more information.
Returns the value associated with the given key
if found.
If key
is not found, returns nil
.
Returns the value associated with the given key
if found.
If key
is not found, returns nil
.
Returns the function mapped to name
, that was created by either Fiddle::Importer.extern
or Fiddle::Importer.bind
Get the value for the parameter with a given key.
If the parameter has multiple values, only the first will be retrieved; use params
to get the array of values.
Returns the string field value for the case-insensitive field key
, or nil
if there is no such key; see Fields:
res = Net::HTTP.get_response(hostname, '/todos/1') res['Connection'] # => "keep-alive" res['Nosuch'] # => nil
Note that some field values may be retrieved via convenience methods; see Getters.
Returns a string containing the IP address representation in canonical form.
Convert self
to ISO-2022-JP
Convert self
to EUC-JP
Convert self
to Shift_JIS
Convert self
to UTF-8
Convert self
to UTF-16
Convert self
to UTF-32
Convert self
to locale encoding
Returns whether self
‘s encoding is EUC-JP or not.
Returns whether self
‘s encoding is Shift_JIS or not.
Returns whether self
‘s encoding is ISO-2022-JP or not.
Returns whether self
‘s encoding is UTF-8 or not.
Splits str
into an array of tokens in the same way the UNIX Bourne shell does.
See Shellwords.shellsplit
for details.
Escapes str
so that it can be safely used in a Bourne shell command line.
See Shellwords.shellescape
for details.
Extracts data from self
, forming objects that become the elements of a new array; returns that array. See Packed Data.