class ActiveSupport::HashWithIndifferentAccess

def default(*args)

Experimental RBS support (using type sampling data from the type_fusion project).

def default: (*Array[String] args) -> untyped

This signature was generated using 1 sample from 1 application.

hash.default(:foo) # => 'foo'
hash.default('foo') # => 'foo'
hash.default # => nil
hash = ActiveSupport::HashWithIndifferentAccess.new { |hash, key| key }

hash.default # => 1
hash = ActiveSupport::HashWithIndifferentAccess.new(1)

either a string or a symbol:
Same as Hash#default where the key passed as argument can be
def default(*args)
  super(*args.map { |arg| convert_key(arg) })
end