Class: Mab::RailsBuilder
- Inherits:
-
Builder
- Object
- SimpleBuilder
- Builder
- Mab::RailsBuilder
- Defined in:
- lib/mab/rails.rb
Instance Method Summary collapse
Methods inherited from SimpleBuilder
#capture, #initialize, #method_missing, #to_s
Methods included from Mixin
#mab, #mab_done, #mab_insert, #mab_options, #mab_tag, #tag!, #text, #text!
Constructor Details
This class inherits a constructor from Mab::SimpleBuilder
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Mab::SimpleBuilder
Instance Method Details
#content_for(*args) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/mab/rails.rb', line 3 def content_for(*args) blk = proc do |*a| mab { yield(*a) }.html_safe end if block_given? @_helper.send(:content_for, *args, &blk) end |