Results for: "partition"

Returns URL-unescaped string following RFC 3986.

URL-encode a string following RFC 3986 Space characters (+“ ”+) are encoded with (+“%20”+)

url_encoded_string = CGI.escapeURIComponent("'Stop!' said Fred")
   # => "%27Stop%21%27%20said%20Fred"

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

string = CGI.unescapeURIComponent("%27Stop%21%27+said%20Fred")
   # => "'Stop!'+said Fred"
No documentation available

See IO#getpass.

Like getc, but raises an exception if already at end-of-stream; see Character IO.

Reads a one-character string from the stream. Raises an EOFError at end of file.

Writes s to the stream. If the argument is not a String it will be converted using .to_s method. Returns the number of bytes written.

Clears the GC profiler data.

Writes the GC::Profiler.result to $stdout or the given IO object.

Generate a submit button Input element, as a String.

value is the text to display on the button. name is the name of the input.

Alternatively, the attributes can be specified as a hash.

submit
  # <INPUT TYPE="submit">

submit("ok")
  # <INPUT TYPE="submit" VALUE="ok">

submit("ok", "button1")
  # <INPUT TYPE="submit" VALUE="ok" NAME="button1">

submit("VALUE" => "ok", "NAME" => "button1", "ID" => "foo")
  # <INPUT TYPE="submit" VALUE="ok" NAME="button1" ID="foo">

Generate a TextArea element, as a String.

name is the name of the textarea. cols is the number of columns and rows is the number of rows in the display.

Alternatively, the attributes can be specified as a hash.

The body is provided by the passed-in no-argument block

textarea("name")
   # = textarea("NAME" => "name", "COLS" => 70, "ROWS" => 10)

textarea("name", 40, 5)
   # = textarea("NAME" => "name", "COLS" => 40, "ROWS" => 5)
No documentation available

returns a charset parameter in Content-Type field. It is downcased for canonicalization.

If charset parameter is not given but a block is given, the block is called and its result is returned. It can be used to guess charset.

If charset parameter and block is not given, nil is returned except text type. In that case, “utf-8” is returned as defined by RFC6838 4.2.1

Create a new AliasGlobalVariableNode node

Create a new ArgumentsNode node

Create a new ArrayNode node

Create a new BlockArgumentNode node

Create a new BlockLocalVariableNode node

Create a new CallAndWriteNode node

Create a new CallOperatorWriteNode node

Create a new CallOrWriteNode node

Create a new CallTargetNode node

Create a new CapturePatternNode node

Create a new ClassVariableReadNode node

Search took: 4ms  ·  Total Results: 3946