Module: Swee::Helper

Included in:
View
Defined in:
lib/swee/helper.rb

Instance Method Summary collapse

Instance Method Details

#form_forObject



16
17
18
# File 'lib/swee/helper.rb', line 16

def form_for

end

#image_tagObject



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 parse_tag_options options

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, options = nil, open = false, escape = true)

  "<#{name}#{tag_options(options, escape) if options}#{open ? ">" : " />"}".html_safe
end