Module: Dispatcher
- Defined in:
- lib/bakery/detail/dispatcher.rb
Overview
Copyright © 2013 Nathan Currier
Use, modification, and distribution are all subject to the Boost Software License, Version 1.0. (See the accompanying file LICENSE.md or at rideliner.tk/LICENSE.html).
<description>
Defined Under Namespace
Modules: InitializeWithBlock
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
13 14 15 |
# File 'lib/bakery/detail/dispatcher.rb', line 13 def self.included base base.extend InitializeWithBlock end |
Instance Method Details
#dispatch(&block) ⇒ Object
25 26 27 28 29 |
# File 'lib/bakery/detail/dispatcher.rb', line 25 def dispatch &block if block self.instance_eval &block end end |