Sha256: b666c1c34dec6939ece41b14711545956cd858d758caa6a58256e57d22bdfc07

Contents?: true

Size: 313 Bytes

Versions: 3

Compression:

Stored size: 313 Bytes

Contents


format :html do
  view :grouped_list do
    All::CardtypeGroups::GROUP.keys.map do |group|
      type_list = group == "Custom" ? custom_types : All::CardtypeGroups::GROUP[group]
      next if type_list.empty?

      [wrap_with(:h5, group), wrap_with(:p, listing(type_list))]
    end.flatten.join "\n"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
card-mod-rules-0.14.2 set/self/cardtype.rb
card-mod-rules-0.14.1 set/self/cardtype.rb
card-mod-rules-0.14.0 set/self/cardtype.rb