module Dispatcher
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>
Public Class Methods
included(base)
click to toggle source
# File lib/bakery/detail/dispatcher.rb, line 13 def self.included base base.extend InitializeWithBlock end
Public Instance Methods
dispatch(&block)
click to toggle source
# File lib/bakery/detail/dispatcher.rb, line 25 def dispatch &block if block self.instance_eval &block end end