module Tar::Backports
Public Instance Methods
+@()
click to toggle source
github.com/marcandre/backports/blob/v3.8.0/lib/backports/2.3.0/string/uplus.rb
# File lib/tar/backports.rb, line 35 def +@ frozen? ? dup : self end
match?(*args)
click to toggle source
github.com/marcandre/backports/blob/v3.8.0/lib/backports/2.4.0/regexp/match.rb
# File lib/tar/backports.rb, line 24 def match?(*args) Fiber.new { !match(*args).nil? }.resume end
negative?()
click to toggle source
# File lib/tar/backports.rb, line 15 def negative? self < 0 end
new(string = "", encoding: nil)
click to toggle source
Calls superclass method
# File lib/tar/backports.rb, line 45 def new(string = "", encoding: nil) super(string).force_encoding(encoding) end
sum(identity = 0) { |value| ... }
click to toggle source
# File lib/tar/backports.rb, line 7 def sum(identity = 0) reduce(identity) { |acc, value| acc + (block_given? ? yield(value) : value) } end