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) ⇒ Object
Methods inherited from ProcessCondition
Constructor Details
#initialize(options = {}) ⇒ AlwaysTrue
Returns a new instance of AlwaysTrue.
5 6 7 |
# File 'lib/bluepill/process_conditions/always_true.rb', line 5 def initialize( = {}) @below = [:below] end |
Instance Method Details
#check(value) ⇒ Object
13 14 15 |
# File 'lib/bluepill/process_conditions/always_true.rb', line 13 def check(value) true end |
#run(pid) ⇒ Object
9 10 11 |
# File 'lib/bluepill/process_conditions/always_true.rb', line 9 def run(pid) 1 end |