Module: Card::Set::Type::Toggle::HtmlFormat

Extended by:
AbstractFormat
Defined in:
card/tmpsets/set/mod008-card-mod-format/type/toggle.rb,
card/tmpsets/set/mod007-card-mod-format/type/toggle.rb

Instance Method Summary collapse

Instance Method Details

#one_line_contentObject



38
39
40
# File 'card/tmpsets/set/mod008-card-mod-format/type/toggle.rb', line 38

def one_line_content
  short_content
end

#short_contentObject



42
43
44
# File 'card/tmpsets/set/mod008-card-mod-format/type/toggle.rb', line 42

def short_content
  render_core
end

#toggleObject



30
31
32
# File 'card/tmpsets/set/mod008-card-mod-format/type/toggle.rb', line 30

def toggle
  check_box :content
end

#toggle_labelObject



34
35
36
# File 'card/tmpsets/set/mod008-card-mod-format/type/toggle.rb', line 34

def toggle_label
  label :content, card.name.tag
end

#view: inputObject



22
23
24
# File 'card/tmpsets/set/mod008-card-mod-format/type/toggle.rb', line 22

view :input do
  toggle
end

#view: labeled_editorObject



26
27
28
# File 'card/tmpsets/set/mod008-card-mod-format/type/toggle.rb', line 26

view :labeled_editor do
  toggle + toggle_label
end