@@foo += bar
becomes
@@foo = @@foo + bar
$foo ||= bar
becomes
defined?($foo) ? $foo : $foo = bar
$foo += bar
becomes
$foo = $foo + bar
Returns the challenge string associated with this SPKI
.
str - the challenge string to be set for this instance
Sets the challenge to be associated with the SPKI
. May be used by the server, e.g. to prevent replay.
Close and delete the session’s FileStore
file.
Delete the session state.
Close and delete the session’s PStore
file.
Fetch the filepath of the value.
Reparse the value and return the parse result.
Reparse the file and return the parse result.
Reparse the string and return the parse result.
Configure the filepath field for this repository and return self.
Tokenizes the Ruby
program and returns an array of an array, which is formatted like [[lineno, column], type, token, state]
. The filename
argument is mostly ignored. By default, this method does not handle syntax errors in src
, use the raise_errors
keyword to raise a SyntaxError
for an error in src
.
require "ripper" require "pp" pp Ripper.lex("def m(a) nil end") #=> [[[1, 0], :on_kw, "def", FNAME ], [[1, 3], :on_sp, " ", FNAME ], [[1, 4], :on_ident, "m", ENDFN ], [[1, 5], :on_lparen, "(", BEG|LABEL], [[1, 6], :on_ident, "a", ARG ], [[1, 7], :on_rparen, ")", ENDFN ], [[1, 8], :on_sp, " ", BEG ], [[1, 9], :on_kw, "nil", END ], [[1, 12], :on_sp, " ", END ], [[1, 13], :on_kw, "end", END ]]
Lazily initialize the parse result.
Remove the SvcParam
with the given key
and return it.
True if the requested gem has already been installed.
When allow_prerelease
is set to true
prereleases gems are allowed to match dependencies.