Module: Cognizant::Process::Conditions

Defined in:
lib/cognizant/process/conditions.rb,
lib/cognizant/process/conditions/cpu_usage.rb,
lib/cognizant/process/conditions/always_true.rb,
lib/cognizant/process/conditions/memory_usage.rb,
lib/cognizant/process/conditions/poll_condition.rb

Defined Under Namespace

Classes: AlwaysTrue, CpuUsage, MemoryUsage, PollCondition

Class Method Summary collapse

Class Method Details

.[](name) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/cognizant/process/conditions.rb', line 10

def self.[](name)
  begin
    const_get(name.to_s.camelcase)
  rescue NameError
    nil
  end
end