module Polyfill::V2_4::String::ClassMethods
Public Instance Methods
new(*args)
click to toggle source
Calls superclass method
# File lib/polyfill/v2_4/string.rb, line 7 def new(*args) hash = args.find { |arg| arg.is_a?(::Hash) } hash && hash.delete(:capacity) if hash super(*args) end