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

Extended by:
AbstractFormat
Defined in:
platypus/tmp/set/gem-defaults/mod004-format/type/toggle.rb

Instance Method Summary collapse

Instance Method Details

#one_line_contentObject



38
39
40
# File 'platypus/tmp/set/gem-defaults/mod004-format/type/toggle.rb', line 38

def one_line_content
  short_content
end

#short_contentObject



42
43
44
# File 'platypus/tmp/set/gem-defaults/mod004-format/type/toggle.rb', line 42

def short_content
  render_core
end

#toggleObject



30
31
32
# File 'platypus/tmp/set/gem-defaults/mod004-format/type/toggle.rb', line 30

def toggle
  check_box :content
end

#toggle_labelObject



34
35
36
# File 'platypus/tmp/set/gem-defaults/mod004-format/type/toggle.rb', line 34

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

#view: inputObject



22
23
24
# File 'platypus/tmp/set/gem-defaults/mod004-format/type/toggle.rb', line 22

view :input do
  toggle
end

#view: labeled_editorObject



26
27
28
# File 'platypus/tmp/set/gem-defaults/mod004-format/type/toggle.rb', line 26

view :labeled_editor do
  toggle + toggle_label
end