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
-
#one_line_content ⇒ Object
-
#short_content ⇒ Object
-
#toggle ⇒ Object
-
#toggle_label ⇒ Object
-
#view: input ⇒ Object
-
#view: labeled_editor ⇒ Object
Instance Method Details
#one_line_content ⇒ Object
38 39 40 |
# File 'platypus/tmp/set/gem-defaults/mod004-format/type/toggle.rb', line 38 def one_line_content short_content end |
#short_content ⇒ Object
42 43 44 |
# File 'platypus/tmp/set/gem-defaults/mod004-format/type/toggle.rb', line 42 def short_content render_core end |
#toggle ⇒ Object
30 31 32 |
# File 'platypus/tmp/set/gem-defaults/mod004-format/type/toggle.rb', line 30 def toggle check_box :content end |
#toggle_label ⇒ Object
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: input ⇒ Object
22 23 24 |
# File 'platypus/tmp/set/gem-defaults/mod004-format/type/toggle.rb', line 22 view :input do toggle end |
#view: labeled_editor ⇒ Object
26 27 28 |
# File 'platypus/tmp/set/gem-defaults/mod004-format/type/toggle.rb', line 26 view :labeled_editor do toggle + toggle_label end |