Sha256: 1bf238dac8e910a568bb7dab7cbbf4950fafbd56ff3ea3eb8df4e6fda8a753b8
Contents?: true
Size: 883 Bytes
Versions: 10
Compression:
Stored size: 883 Bytes
Contents
include_set Abstract::Paging include_set Abstract::Items def diff_args { diff_format: :pointer } end def count item_strings.size end def standardize_content value value = item_strings(content: value) unless value.is_a? Array super value end def each_item_name_with_options _content=nil item_names.each { |name| yield name, {} } end def swap_names old_name, new_name item_strings.map do |string| if string.match?(/^[:~]/) string else string.to_name.swap old_name, new_name end end end format :html do view :view_list do %i[bar box closed titled labeled].map do |view| voo.items[:view] = view wrap_with :p, [content_tag(:h3, "#{view} items"), render_content] end end end private def chunk_class Card::Content::Chunk::Link end def each_reference_out item_names.each { |name| yield name, chunk_class::CODE } end
Version data entries
10 entries across 10 versions & 1 rubygems