Method: Blot::Helpers::Grid#wrapper

Defined in:
lib/blot/helpers/grid.rb

#wrapper(options = {}, &block) ⇒ Object



68
69
70
71
72
73
74
75
# File 'lib/blot/helpers/grid.rb', line 68

def wrapper(options={}, &block)
  unless options.delete(:wrapper).is_a?(FalseClass) || options[:class] && options[:class].split(' ').include?('wrapper')
    options[:class] = "wrapper #{options[:class]}".squish
  end
   :td, options do
    optional_content(options) { yield if block_given? }
  end
end