Results for: "OptionParser"

No documentation available
No documentation available

Emit a scalar with value and tag

Emit a sequence with list and tag

Called when a sequence is started.

anchor is the anchor associated with the sequence or nil. tag is the tag associated with the sequence or nil. implicit a boolean indicating whether or not the sequence was implicitly started. style is an integer indicating the list style.

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

Example

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

---
- !!seq [
  a
]
- &pewpew
  - b

The above YAML document consists of three lists, an outer list that contains two inner lists. Here is a matrix of the parameters sent to represent these lists:

# anchor    tag                       implicit  style
[nil,       nil,                      true,     1     ]
[nil,       "tag:yaml.org,2002:seq",  false,    2     ]
["pewpew",  nil,                      true,     1     ]

This method is called when a parse error is found.

ERROR_TOKEN_ID is an internal ID of token which caused error. You can get string representation of this ID by calling token_to_str.

ERROR_VALUE is a value of error token.

value_stack is a stack of symbol values. DO NOT MODIFY this object.

This method raises ParseError by default.

If this method returns, parsers enter “error recovering mode”.

Duplicates the deflate stream.

No documentation available

Sends a GET request to the target and returns the HTTP response as a Net::HTTPResponse object. The target can either be specified as (uri), or as (host, path, port = 80); so:

res = Net::HTTP.get_response(URI('http://www.example.com/index.html'))
print res.body

or:

res = Net::HTTP.get_response('www.example.com', '/index.html')
print res.body

Returns the X.509 certificates the server presented.

No documentation available

The proxy username, if one is configured

Executes a request which uses a representation and returns its body.

No documentation available

Similar to search(), but returns unique identifiers.

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

returns the SSL Parameters

see also POP3.enable_ssl

true if server advertises STARTTLS. You cannot get valid value before opening SMTP session.

No documentation available
No documentation available
No documentation available
Search took: 4ms  ·  Total Results: 4130