Class: Bemer::ComponentPack

Inherits:
Object
  • Object
show all
Defined in:
lib/bemer/component_pack.rb

Instance Method Summary collapse

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

#renderObject



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