class Faker::Address
def city(legacy_options = NOT_GIVEN, options: {})
-
(String)
-
Options Hash:
(**with_state)
-
Whether
(Boolean
) -- to include the state name in the output.
Parameters:
-
options
(Hash
) --
def city(legacy_options = NOT_GIVEN, options: {}) warn_for_deprecated_arguments do |keywords| keywords << :options if legacy_options != NOT_GIVEN end parse(options[:with_state] ? 'address.city_with_state' : 'address.city') end