Class: Bluepill::ProcessConditions::ProcessCondition

Inherits:
Object
  • Object
show all
Defined in:
lib/bluepill/process_conditions/process_condition.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ ProcessCondition

Returns a new instance of ProcessCondition.



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

def initialize(options = {})
  @options = options
end

Instance Method Details

#check(_value) ⇒ Object



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

def check(_value)
  fail 'Implement in subclass!'
end

#format_value(value) ⇒ Object



16
17
18
# File 'lib/bluepill/process_conditions/process_condition.rb', line 16

def format_value(value)
  value
end

#run(_pid, _include_children) ⇒ Object



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

def run(_pid, _include_children)
  fail 'Implement in subclass!'
end