Module: Card::Set::All::Html::HtmlFormat

Extended by:
Card::Set::AbstractFormat
Defined in:
platypus/tmp/set/gem-defaults/mod004-format/all/html.rb

Instance Method Summary collapse

Instance Method Details

#default_item_viewObject



28
29
30
# File 'platypus/tmp/set/gem-defaults/mod004-format/all/html.rb', line 28

def default_item_view
  :bar
end

#default_nest_viewObject



24
25
26
# File 'platypus/tmp/set/gem-defaults/mod004-format/all/html.rb', line 24

def default_nest_view
  Cardio.config.default_html_view
end

#view: typeObject



12
13
14
# File 'platypus/tmp/set/gem-defaults/mod004-format/all/html.rb', line 12

view :type, unknown: true do
  link_to_card card.type_card, nil, class: "cardtype"
end

#view: type_infoObject



16
17
18
19
20
21
22
# File 'platypus/tmp/set/gem-defaults/mod004-format/all/html.rb', line 16

view :type_info do
  return unless card.type_code != :basic

  wrap_with :span, class: "type-info float-end" do
    link_to_card card.type_name, nil, class: "navbar-link"
  end
end