class Faker::Base
def fetch(key)
Helper for the common approach of grabbing a translation
def fetch(key) fetched = sample(translate("faker.#{key}")) if fetched&.match(%r{^/}) && fetched.match(%r{/$}) # A regex regexify(fetched) else fetched end end