Class: Cognizant::Process::DSLProxy

Inherits:
Object
  • Object
show all
Includes:
Util::DSLProxyMethodsHandler
Defined in:
lib/cognizant/process/dsl_proxy.rb

Instance Attribute Summary

Attributes included from Util::DSLProxyMethodsHandler

#attributes

Instance Method Summary collapse

Methods included from Util::DSLProxyMethodsHandler

#method_missing

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, options, &block)
  @process.check(condition_name, options, &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