Sha256: a7b7b5fcfe633823e6f7dfa6a46fa884cbccbeee64ed13dec80e99d0ca31e0fb

Contents?: true

Size: 737 Bytes

Versions: 17

Compression:

Stored size: 737 Bytes

Contents

module RulesEngineView
  module Boxes
    def re_whitebox(&block)
      result = ''
      result << '<div class="re-whitebox">' 
      result << '<div class="re-whitebox-content">'
      result << capture(&block)
      result << '<div class="clear"></div>'
      result << '</div>'
      result << '</div>'
   
      concat result
    end
    
    def re_shadowbox(&block)
      result = ''
      result << '<div class="re-shadowbox-outer">' 
      result << '<div class="re-shadowbox-inner">'
      result << capture(&block)
      result << '<div class="clear"></div>'
      result << '</div>'
      result << '</div>'
   
      concat result
    end
    
  end  
end

ActionView::Base.class_eval do
  include RulesEngineView::Boxes
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rules_engine-0.2.0 lib/rules_engine_view/boxes.rb
rules_engine-0.1.10 lib/rules_engine_view/boxes.rb
rules_engine-0.1.9 lib/rules_engine_view/boxes.rb
rules_engine-0.1.8 lib/rules_engine_view/boxes.rb
rules_engine-0.1.7 lib/rules_engine_view/boxes.rb
rules_engine-0.1.6 lib/rules_engine_view/boxes.rb
rules_engine-0.1.5 lib/rules_engine_view/boxes.rb
rules_engine-0.1.4 lib/rules_engine_view/boxes.rb
rules_engine-0.1.3 lib/rules_engine_view/boxes.rb
rules_engine-0.1.1 lib/rules_engine_view/boxes.rb
rules_engine-0.1.0 lib/rules_engine_view/boxes.rb
rules_engine-0.0.8 lib/rules_engine_view/boxes.rb
rules_engine-0.0.7 lib/rules_engine_view/boxes.rb
rules_engine-0.0.6 lib/rules_engine_view/boxes.rb
rules_engine-0.0.5 lib/rules_engine_view/boxes.rb
rules_engine-0.0.4 lib/rules_engine_view/boxes.rb
rules_engine-0.0.3 lib/rules_engine_view/boxes.rb