Module: IEConditionalTag::Helper
- Defined in:
- lib/ie_conditional_tag/helper.rb
Instance Method Summary collapse
Instance Method Details
#ie_conditional_tag(name, options = {}, &block) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/ie_conditional_tag/helper.rb', line 5 def ie_conditional_tag(name, = {}, &block) result = IEConditionalTag.process() do || tag(name, , true) end result.chomp! if block_given? result << capture(&block) result << raw("</#{name}>") end raw(result) end |