Module: Fried::Call::OnBuild
- Defined in:
- lib/fried/call/on_build.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/fried/call/on_build.rb', line 5 def self.included(klass) klass.instance_eval do class << self extend Forwardable # @!method call # Runs the {#call} method on an instance initialized with {#build} def_delegator :build, :call end end end |
Instance Method Details
#call ⇒ Object
17 18 19 |
# File 'lib/fried/call/on_build.rb', line 17 def call raise NotImplementedError, "Call object must implement #call" end |