Class: Chickadee::BlockInstaller
- Inherits:
-
Object
- Object
- Chickadee::BlockInstaller
- Defined in:
- lib/chickadee/block_installer.rb
Instance Method Summary collapse
-
#initialize(&block) ⇒ BlockInstaller
constructor
A new instance of BlockInstaller.
- #install(c) ⇒ Object
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 |