class ActiveSupport::HashWithIndifferentAccess
def fetch(key, *extras)
Experimental RBS support (using type sampling data from the type_fusion
project).
def fetch: (Symbol key, *Array[] extras) -> FactoryBot::Factory
This signature was generated using 3 samples from 1 application.
counters.fetch(:bar) { |key| 0 } # => 0
counters.fetch(:bar, 0) # => 0
counters.fetch('foo') # => 1
counters[:foo] = 1
counters = ActiveSupport::HashWithIndifferentAccess.new
either a string or a symbol:
Same as Hash#fetch where the key passed as argument can be
def fetch(key, *extras) super(convert_key(key), *extras) end