Results for: "OptionParser"

Convert path string to a class

No documentation available

Emit a scalar with value

Emit a sequence of list

Called when a scalar value is found. The scalar may have an anchor, a tag, be implicitly plain or implicitly quoted

value is the string value of the scalar anchor is an associated anchor or nil tag is an associated tag or nil plain is a boolean value quoted is a boolean value style is an integer idicating the string style

See the constants in Psych::Nodes::Scalar for the possible values of style

Example

Here is a YAML document that exercises most of the possible ways this method can be called:

---
- !str "foo"
- &anchor fun
- many
  lines
- |
  many
  newlines

The above YAML document contains a list with four strings. Here are the parameters sent to this method in the same order:

# value               anchor    tag     plain   quoted  style
["foo",               nil,      "!str", false,  false,  3    ]
["fun",               "anchor", nil,    true,   false,  1    ]
["many lines",        nil,      nil,    true,   false,  1    ]
["many\nnewlines\n",  nil,      nil,    false,  true,   4    ]

Called when an empty event happens. (Which, as far as I can tell, is never).

Returns a Psych::Parser::Mark object that contains line, column, and index information.

No documentation available
No documentation available

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

See Psych::Handler#scalar

Get the output style, canonical or not.

Set the output style to canonical, or not.

Enter error recovering mode. This method does not call on_error.

Exit parser. Return value is Symbol_Value_Stack.

Leave error recovering mode.

returns the timestamp as a time object.

ancillarydata should be one of following type:

Creates a new Socket::Option object for SOL_SOCKET/SO_LINGER.

onoff should be an integer or a boolean.

secs should be the number of seconds.

p Socket::Option.linger(true, 10)
#=> #<Socket::Option: UNSPEC SOCKET LINGER on 10sec>

Returns the linger data in sockopt as a pair of boolean and integer.

sockopt = Socket::Option.linger(true, 10)
p sockopt.linger => [true, 10]

Logs a message at the error (syslog warning) log level, or logs the message returned from the block.

Logs a message at the warn (syslog notice) log level, or logs the message returned from the block.

Returns the adler-32 checksum.

Returns true if the stream is closed.

Closes the stream. All operations on the closed stream will raise an exception.

Resets and initializes the stream. All data in both input and output buffer are discarded.

Returns last modification time recorded in the gzip file header.

Search took: 6ms  ·  Total Results: 4416