Module: Swee::Helper
- Included in:
- View
- Defined in:
- lib/swee/helper.rb
Instance Method Summary collapse
- #form_for ⇒ Object
- #image_tag ⇒ Object
- #parse_tag_options(options) ⇒ Object
- #raw(text) ⇒ Object
- #tag(name, options = nil, open = false, escape = true) ⇒ Object
Instance Method Details
#form_for ⇒ Object
16 17 18 |
# File 'lib/swee/helper.rb', line 16 def form_for end |
#image_tag ⇒ Object
12 13 14 |
# File 'lib/swee/helper.rb', line 12 def image_tag end |
#parse_tag_options(options) ⇒ Object
25 26 27 |
# File 'lib/swee/helper.rb', line 25 def end |
#raw(text) ⇒ Object
8 9 10 |
# File 'lib/swee/helper.rb', line 8 def raw text text.html_safe end |
#tag(name, options = nil, open = false, escape = true) ⇒ Object
20 21 22 23 |
# File 'lib/swee/helper.rb', line 20 def tag(name, = nil, open = false, escape = true) "<#{name}#{(, escape) if }#{open ? ">" : " />"}".html_safe end |