Module Docile::Execution
In: lib/docile/execution.rb

@api private

A namespace for functions relating to the execution of a block against a proxy object.

Methods

Public Instance methods

Execute a block in the context of an object whose methods represent the commands in a DSL, using a specific proxy class.

@param dsl [Object] context object whose methods make up the

                           (initial) DSL

@param proxy_type [FallbackContextProxy, ChainingFallbackContextProxy]

                           which class to instantiate as proxy context

@param args [Array] arguments to be passed to the block @param block [Proc] the block of DSL commands to be executed @return [Object] the return value of the block

[Validate]