Sha256: df6c48ca503092c172d625d9a035c21d338b312256400309efd1c2cb876942e0

Contents?: true

Size: 760 Bytes

Versions: 4

Compression:

Stored size: 760 Bytes

Contents

module RulesEngineView
  module Boxes
    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
    
    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
  end  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rules_engine-0.3.3 lib/rules_engine_view/boxes.rb
rules_engine-0.3.2 lib/rules_engine_view/boxes.rb
rules_engine-0.3.1 lib/rules_engine_view/boxes.rb
rules_engine-0.3.0 lib/rules_engine_view/boxes.rb