Module: RulesEngineView::Boxes
- Defined in:
- lib/rules_engine_view/boxes.rb
Instance Method Summary collapse
Instance Method Details
#re_shadowbox(&block) ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/rules_engine_view/boxes.rb', line 14 def re_shadowbox(&block) result = ''.html_safe result << '<div class="re-shadowbox-outer">'.html_safe result << '<div class="re-shadowbox-inner">'.html_safe result << capture(&block) result << '<div class="clear"></div>'.html_safe result << '</div>'.html_safe result << '</div>'.html_safe result end |
#re_whitebox(&block) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/rules_engine_view/boxes.rb', line 3 def re_whitebox(&block) result = ''.html_safe result << '<div class="re-whitebox">'.html_safe result << '<div class="re-whitebox-content">'.html_safe result << capture(&block) result << '<div class="clear"></div>'.html_safe result << '</div>'.html_safe result << '</div>'.html_safe result end |