Sha256: 4f01bf1232ddfe1f4c81efc2fe30fd5603abfc43bc0b36250ca4361e9d4ab2fe

Contents?: true

Size: 754 Bytes

Versions: 3

Compression:

Stored size: 754 Bytes

Contents

module RulesView
  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

3 entries across 3 versions & 1 rubygems

Version Path
rules_view-0.0.3 lib/rules_view/boxes.rb
rules_view-0.0.2 lib/rules_view/boxes.rb
rules_view-0.0.1 lib/rules_view/boxes.rb