Class: Cognizant::Process::Conditions::AlwaysTrue

Inherits:
PollCondition
  • Object
show all
Defined in:
lib/cognizant/process/conditions/always_true.rb

Instance Method Summary collapse

Methods inherited from PollCondition

#format_value, #initialize

Constructor Details

This class inherits a constructor from Cognizant::Process::Conditions::PollCondition

Instance Method Details

#check(value) ⇒ Object



9
10
11
# File 'lib/cognizant/process/conditions/always_true.rb', line 9

def check(value)
  true
end

#run(pid) ⇒ Object



5
6
7
# File 'lib/cognizant/process/conditions/always_true.rb', line 5

def run(pid)
  1
end