Results for: "Psych"

Create a new TreeBuilder instance

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

Create a new Psych::Emitter that writes to io.

Emit a scalar with value, anchor, tag, and a plain or quoted string type with style.

See Psych::Handler#scalar

Emit an alias with anchor.

See Psych::Handler#alias

Get the output style, canonical or not.

Set the output style to canonical, or not.

Get the indentation level.

Set the indentation level to level. The level must be less than 10 and greater than 1.

Start streaming using encoding

No documentation available

@api private

No documentation available

Represents SMTP error code 4xx, a temporary error.

Represents an SMTP command syntax error (error code 500)

Raised by exit to initiate the termination of the script.

Raised when encountering Ruby code with an invalid syntax.

eval("1+1=2")

raises the exception:

SyntaxError: (eval):1: syntax error, unexpected '=', expecting $end
No documentation available

SystemCallError is the base class for all low-level platform-dependent errors.

The errors available on the current platform are subclasses of SystemCallError and are defined in the Errno module.

File.open("does/not/exist")

raises the exception:

Errno::ENOENT: No such file or directory - does/not/exist

Symbol objects represent names inside the Ruby interpreter. They are generated using the :name and :"string" literals syntax, and by the various to_sym methods. The same Symbol object will be created for a given name or string for the duration of a program’s execution, regardless of the context or meaning of that name. Thus if Fred is a constant in one context, a method in another, and a class in a third, the Symbol :Fred will be the same object in all three contexts.

module One
  class Fred
  end
  $f1 = :Fred
end
module Two
  Fred = 1
  $f2 = :Fred
end
def Fred()
end
$f3 = :Fred
$f1.object_id   #=> 2514190
$f2.object_id   #=> 2514190
$f3.object_id   #=> 2514190

IPSocket is the super class of TCPSocket and UDPSocket.

UDPSocket represents a UDP/IP socket.

Search took: 7ms  ·  Total Results: 944