Class: Bootstrap::Component::Layout
- Inherits:
-
Bootstrap::Component
- Object
- Bootstrap::Component
- Bootstrap::Component::Layout
- Defined in:
- mod/bootstrap/lib/bootstrap/component/layout.rb
Overview
generate bootstrap column layout
Instance Method Summary collapse
Methods inherited from Bootstrap::Component
add_div_method, add_tag_method, #append, #initialize, #insert, #prepend, render, #render
Methods included from Delegate
#method_missing, #respond_to_missing?
Methods included from BasicTags
Constructor Details
This class inherits a constructor from Bootstrap::Component
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Bootstrap::Delegate
Instance Method Details
#render_content ⇒ Object
20 21 22 23 24 25 26 27 28 |
# File 'mod/bootstrap/lib/bootstrap/component/layout.rb', line 20 def render_content content = instance_exec *@args, &@build_block add_content content opts = @args.first return unless opts && opts.delete(:container) content = @content.pop @content = ["".html_safe] container content, opts end |