Results for: "uniq"

No documentation available
No documentation available
No documentation available
No documentation available
No documentation available

Run the command specified by args.

No documentation available

Run the gem command with the following arguments.

Unpacks the gem into the given directory.

Creates a new package that will read or write to the file gem.

Initialization tasks without the “yield self” or define operations.

Sanitize the descriptive fields in the spec. Sometimes non-ASCII characters will garble the site index. Non-ASCII characters will be replaced by their XML entity equivalent.

Unescapes the uri which came from a CGI parameter

Args

str

String to remove escapes from

escaped

Regexp to apply. Defaults to self.regexp[:ESCAPED]

Description

Removes escapes from str.

Args

str

String to remove escapes from

escaped

Regexp to apply. Defaults to self.regexp[:ESCAPED]

Description

Removes escapes from str.

Releases the lock. Raises ThreadError if mutex wasn’t locked by the current thread.

Obtains a lock, runs the block, and releases the lock when the block completes. See the example under Thread::Mutex.

Finishes the converter. It returns the last part of the converted string.

ec = Encoding::Converter.new("utf-8", "iso-2022-jp")
p ec.convert("\u3042")     #=> "\e$B$\""
p ec.finish                #=> "\e(B"

Returns HTML-unescaped string.

Returns URL-unescaped string following RFC 3986.

Returns URL-unescaped string (application/x-www-form-urlencoded).

URL-decode an application/x-www-form-urlencoded string with encoding(optional).

string = CGI.unescape("%27Stop%21%27+said+Fred")
   # => "'Stop!' said Fred"

URL-decode a string following RFC 3986 with encoding(optional).

string = CGI.unescape("%27Stop%21%27+said%20Fred")
   # => "'Stop!'+said Fred"

Unescape a string that has been HTML-escaped

CGI.unescapeHTML("Usage: foo "bar" <baz>")
   # => "Usage: foo \"bar\" <baz>"

Undo escaping such as that done by CGI.escapeElement()

print CGI.unescapeElement(
        CGI.escapeHTML('<BR><A HREF="url"></A>'), "A", "IMG")
  # "&lt;BR&gt;<A HREF="url"></A>"

print CGI.unescapeElement(
        CGI.escapeHTML('<BR><A HREF="url"></A>'), ["A", "IMG"])
  # "&lt;BR&gt;<A HREF="url"></A>"
Search took: 3ms  ·  Total Results: 402