lib/world-flags.rb in world-flags-0.5.1 vs lib/world-flags.rb in world-flags-0.6.0
- old
+ new
@@ -11,10 +11,24 @@
module WorldFlags
class << self
include Util
attr_writer :active_locales
- attr_writer :locale_flag_map
+ attr_writer :locale_flag_map
+
+ attr_writer :flag_tag, :flag_list_tag, :flag_text
+
+ def flag_text
+ @flag_text ||= '' #' '
+ end
+
+ def flag_tag
+ @flag_tag ||= :li
+ end
+
+ def flag_list_tag
+ @flag_list_tag ||= :ul
+ end
def config &block
(block_given? && block.arity == 1) ? yield(self) : instance_eval(&block)
end