Class: Bluepill::ProcessConditions::AlwaysTrue
- Inherits:
-
ProcessCondition
- Object
- ProcessCondition
- Bluepill::ProcessConditions::AlwaysTrue
- Defined in:
- lib/bluepill/process_conditions/always_true.rb
Instance Method Summary collapse
- #check(_value) ⇒ Object
-
#initialize(options = {}) ⇒ AlwaysTrue
constructor
A new instance of AlwaysTrue.
- #run(_pid, _include_children) ⇒ Object
Methods inherited from ProcessCondition
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( = {}) @below = [: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, _include_children) ⇒ Object
8 9 10 |
# File 'lib/bluepill/process_conditions/always_true.rb', line 8 def run(_pid, _include_children) 1 end |