class Faker::Base
def method_missing(mth, *args, &block)
girls_name: ["Alice", "Cheryl", "Tatiana"]
name:
E.g., in your locale file, create a
You can add whatever you want to the locale file, and it will get caught here.
def method_missing(mth, *args, &block) super unless flexible_key if (translation = translate("faker.#{flexible_key}.#{mth}")) sample(translation) else super end end