lib/world-flags.rb in world-flags-0.6.0 vs lib/world-flags.rb in world-flags-0.6.1

- old
+ new

@@ -15,9 +15,34 @@ attr_writer :active_locales attr_writer :locale_flag_map attr_writer :flag_tag, :flag_list_tag, :flag_text + def country_name_enabled? + WorldFlags::Util::Country.name_enabled? + end + + def language_name_enabled? + WorldFlags::Util::Language.name_enabled? + end + + def country_name_enable! + WorldFlags::Util::Country.name_enable! + end + + def language_name_enable! + WorldFlags::Util::Language.name_enable! + end + + def country_name_disable! + WorldFlags::Util::Country.name_disable! + end + + def language_name_disable! + WorldFlags::Util::Language.name_disable! + end + + def flag_text @flag_text ||= '' #'  ' end def flag_tag