Add observer
as an observer on this object. So that it will receive notifications.
observer
the object that will be notified of changes.
func
Symbol
naming the method that will be called when this Observable
has changes.
This method must return true for observer.respond_to?
and will receive *arg
when notify_observers
is called, where *arg
is the value passed to notify_observers
by this Observable
Remove observer
as an observer on this object so that it will no longer receive notifications.
observer
An observer of this Observable
Add the –clear-sources option
Parses the cookie in str
Parses the cookies in str
Extract the first name=“value” pair from content. Works with single quotes according to the constant CONTENT_PATTERN
. Return a Hash
.
Add the –key option
Add the –http-proxy option
Add the –source option
Add the –platform option to the option parser.
Parses a Range
header value ranges_specifier
Parses a Range
header value ranges_specifier
Parse and return an int from string
The entry point of the parser. This method is used with next_token
. If Racc
wants to get token (and its value), calls next_token.
Example:
def parse @q = [[1,1], [2,2], [3,3], [false, '$']] do_parse end def next_token @q.shift end
Provide the inflate stream with a dictionary that may be required in the future. Multiple dictionaries may be provided. The inflate stream will automatically choose the correct user-provided dictionary based on the stream’s required dictionary.