module Faker::Config
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/faker.rbs module Faker::Config def locale: () -> Symbol def random: () -> Random end
def locale
Experimental RBS support (using type sampling data from the type_fusion
project).
def locale: () -> Symbol
This signature was generated using 40 samples from 1 application.
def locale # Because I18n.locale defaults to :en, if we don't have :en in our available_locales, errors will happen @locale || (I18n.available_locales.include?(I18n.locale) ? I18n.locale : I18n.available_locales.first) end
def own_locale
def own_locale @locale end
def random
Experimental RBS support (using type sampling data from the type_fusion
project).
def random: () -> Random
This signature was generated using 9 samples from 1 application.
def random @random || Random.new end