Sha256: 9a29d3fadbffef5b3684d0d05759810646a95e6cd904a2afd013241e0d4ff577
Contents?: true
Size: 386 Bytes
Versions: 1
Compression:
Stored size: 386 Bytes
Contents
module WorldFlagsHelper def flags_list size, &block raise "Missing block" unless block_given? content_tag :ul, yield, :class => "f#{size}" end def flags flags_hash flags_hash.each_pair do |code, name| flag code, name end end def flag code, name content_tag :li, name, :class => "flag #{code}" end def use_flags size stylesheet_link_tag "flags#{size}" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
world-flags-0.1.0 | lib/world_flags/world_flags_helper.rb |