Module: Garterbelt::ContentRendering::InstanceMethods
- Defined in:
- lib/renderers/content_rendering.rb
Instance Method Summary collapse
- #foot ⇒ Object
- #head ⇒ Object
- #raise_unless_block_content ⇒ Object
- #render ⇒ Object
- #render_content ⇒ Object
Instance Method Details
#foot ⇒ Object
28 29 30 31 32 |
# File 'lib/renderers/content_rendering.rb', line 28 def foot view.render_style = view_style view._escape = view_escape view._level -= 1 end |
#head ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/renderers/content_rendering.rb', line 19 def head self.view_style = view.render_style self.view_escape = view._escape view.render_style = style view._escape = escape view._level += 1 end |
#raise_unless_block_content ⇒ Object
43 44 45 |
# File 'lib/renderers/content_rendering.rb', line 43 def raise_unless_block_content raise ArgumentError, "Block content required" unless self.content && self.content.is_a?(Proc) end |
#render ⇒ Object
12 13 14 15 16 17 |
# File 'lib/renderers/content_rendering.rb', line 12 def render head render_content foot output end |