Module: Polyfill::V2_4::String::ClassMethods

Defined in:
lib/polyfill/v2_4/string.rb

Instance Method Summary collapse

Instance Method Details

#new(*args) ⇒ Object



7
8
9
10
11
12
# 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