Class: Chickadee::BlockInstaller

Inherits:
Object
  • Object
show all
Defined in:
lib/chickadee/block_installer.rb

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ BlockInstaller

Returns a new instance of BlockInstaller.



3
4
5
# File 'lib/chickadee/block_installer.rb', line 3

def initialize(&block)
  @block = block
end

Instance Method Details

#install(c) ⇒ Object



7
8
9
# File 'lib/chickadee/block_installer.rb', line 7

def install(c)
  c.instance_eval(&@block) if @block
end