Class: Bluepill::ProcessConditions::AlwaysTrue

Inherits:
ProcessCondition show all
Defined in:
lib/bluepill/process_conditions/always_true.rb

Instance Method Summary collapse

Methods inherited from ProcessCondition

#format_value

Constructor Details

#initialize(options = {}) ⇒ AlwaysTrue

Returns a new instance of AlwaysTrue.



4
5
6
# File 'lib/bluepill/process_conditions/always_true.rb', line 4

def initialize(options = {})
  @below = options[:below]
end

Instance Method Details

#check(value) ⇒ Object



12
13
14
# File 'lib/bluepill/process_conditions/always_true.rb', line 12

def check(value)
  true
end

#run(pid) ⇒ Object



8
9
10
# File 'lib/bluepill/process_conditions/always_true.rb', line 8

def run(pid)
  1
end