Class: Cognizant::Process::DSLProxy
- Inherits:
-
Object
- Object
- Cognizant::Process::DSLProxy
- Includes:
- Util::DSLProxyMethodsHandler
- Defined in:
- lib/cognizant/process/dsl_proxy.rb
Instance Attribute Summary
Attributes included from Util::DSLProxyMethodsHandler
Instance Method Summary collapse
- #check(condition_name, options, &block) ⇒ Object
-
#initialize(process, &dsl_block) ⇒ DSLProxy
constructor
A new instance of DSLProxy.
- #monitor_children(&child_process_block) ⇒ Object
Methods included from Util::DSLProxyMethodsHandler
Constructor Details
#initialize(process, &dsl_block) ⇒ DSLProxy
Returns a new instance of DSLProxy.
8 9 10 11 12 |
# File 'lib/cognizant/process/dsl_proxy.rb', line 8 def initialize(process, &dsl_block) super @process = process instance_eval(&dsl_block) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Cognizant::Util::DSLProxyMethodsHandler
Instance Method Details
#check(condition_name, options, &block) ⇒ Object
14 15 16 |
# File 'lib/cognizant/process/dsl_proxy.rb', line 14 def check(condition_name, , &block) @process.check(condition_name, , &block) end |
#monitor_children(&child_process_block) ⇒ Object
18 19 20 |
# File 'lib/cognizant/process/dsl_proxy.rb', line 18 def monitor_children(&child_process_block) @process.monitor_children(&child_process_block) end |