class ActiveSupport::HashWithIndifferentAccess

def default(key = (no_key = true))

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

def default: (?String key) -> nil

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(key = (no_key = true))
  if no_key
    super()
  else
    super(convert_key(key))
  end
end