Yields to a block and preserves the previous set of objects being printed.
@@foo += bar ^^^^^^^^^^^^
$foo += bar ^^^^^^^^^^^
@foo += bar ^^^^^^^^^^^
foo += bar ^^^^^^^^^^
@@foo += bar ^^^^^^^^^^^^
$foo += bar ^^^^^^^^^^^
@foo += bar ^^^^^^^^^^^
foo += bar ^^^^^^^^^^
Stop tracing object allocations.
Note that if ::trace_object_allocations_start
is called n-times, then tracing will stop after calling ::trace_object_allocations_stop
n-times.
Constant time memory comparison for fixed length strings, such as results of HMAC
calculations.
Returns true
if the strings are identical, false
if they are of the same length but not identical. If the length is different, ArgumentError
is raised.
Returns true, if circular data structures should be checked, otherwise returns false.
Generates a valid JSON
document from object obj
and returns the result. If no valid JSON
document can be created this method raises a GeneratorError
exception.
Sets the curve parameters. generator must be an instance of EC::Point
that is on the curve. order and cofactor are integers.
See the OpenSSL
documentation for EC_GROUP_set_generator()
When *, **, &, or … are used as an argument in a method call, we check if they were allowed by the current context. To determine that we build this lookup table.
Constructs a new source range from the given start and end offsets.
Constructs a new source range by finding the given character between the given start offset and end offset. If the needle is not found, it returns nil. Importantly it does not search past newlines or comments.
Note that end_offset is allowed to be nil, in which case this will search until the end of the string.
Parse an integer from the string representation.
Parse a float from the string representation.
Parse a complex from the string representation.