Flags for array nodes.
Flags for call nodes.
Flags for nodes that have unescaped content.
Flags for integer nodes that correspond to the base of the integer.
Flags for keyword hash nodes.
Flags for while and until loop nodes.
Flags for range and flip-flop nodes.
Flags for regular expression and match last line nodes.
Flags for string nodes.
Flags for symbol nodes.
Mixin methods for Gem::Command
to promote available RubyGems update
This class walks a YAML
AST, converting each node to Ruby
Takes a return result from an SSPI
function and interprets the value.
Performs the specified substring replacement(s) on self
; returns self
if any replacement occurred, nil
otherwise.
See Substitution Methods.
Returns an Enumerator
if no replacement
and no block given.
Related: String#sub
, String#gsub
, String#sub!
.
Returns a copy of self
with only the first occurrence (not all occurrences) of the given pattern
replaced.
See Substitution Methods.
Related: String#sub!
, String#gsub
, String#gsub!
.
Returns self
with only the first occurrence (not all occurrences) of the given pattern
replaced.
See Substitution Methods.
Related: String#sub
, String#gsub
, String#gsub!
.
Subtract the specified value.
e.g.
c = a.sub(b,n)
If specified and less than the number of significant digits of the result, the result is rounded to that number of digits, according to BigDecimal.mode
.
Returns the exact subseconds for self
as a Numeric
(Integer
or Rational
):
t = Time.now # => 2022-07-11 15:11:36.8490302 -0500 t.subsec # => (4245151/5000000)
If the subseconds is zero, returns integer zero:
t = Time.new(2000, 1, 1, 2, 3, 4) # => 2000-01-01 02:03:04 -0600 t.subsec # => 0