Module: Cheveret::Builder::Divider
- Included in:
- Table::Base
- Defined in:
- lib/cheveret/builder/divider.rb
Instance Method Summary collapse
Instance Method Details
#tag ⇒ Object
31 32 33 34 35 36 37 38 |
# File 'lib/cheveret/builder/divider.rb', line 31 [ :table, :thead, :tbody, :tr, :th, :td ].each do |tag| class_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1 def #{tag}_tag(options={}) options[:class] = [ '#{tag}', options[:class] ].flatten.join(' ').strip template.content_tag(:div, options) { yield } end RUBY_EVAL end |