Class: Bemer::ComponentPack
- Inherits:
-
Object
- Object
- Bemer::ComponentPack
- Defined in:
- lib/bemer/component_pack.rb
Instance Method Summary collapse
-
#initialize(view) ⇒ ComponentPack
constructor
A new instance of ComponentPack.
- #render ⇒ Object
Constructor Details
#initialize(view) ⇒ ComponentPack
Returns a new instance of ComponentPack.
5 6 7 |
# File 'lib/bemer/component_pack.rb', line 5 def initialize(view) @view = view end |
Instance Method Details
#render ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/bemer/component_pack.rb', line 9 def render return unless block_given? create_template_catalog! yield remove_template_catalog! nil end |