Class: EventedBluepill::ProcessConditions::AlwaysTrue
- Inherits:
-
ProcessCondition
- Object
- Coolio::TimerWatcher
- ProcessCondition
- EventedBluepill::ProcessConditions::AlwaysTrue
- Defined in:
- lib/evented_bluepill/process_conditions/always_true.rb
Instance Attribute Summary
Attributes inherited from ProcessCondition
#every, #fires, #logger, #name, #process, #process_condition
Instance Method Summary collapse
- #check(value) ⇒ Object
-
#initialize(name, process, options = {}) ⇒ AlwaysTrue
constructor
A new instance of AlwaysTrue.
- #run ⇒ Object
Methods inherited from ProcessCondition
#clear_history!, #format_value, #to_s
Constructor Details
#initialize(name, process, options = {}) ⇒ AlwaysTrue
Returns a new instance of AlwaysTrue.
8 9 10 11 12 |
# File 'lib/evented_bluepill/process_conditions/always_true.rb', line 8 def initialize(name, process, = {}) @below = [:below] super end |
Instance Method Details
#check(value) ⇒ Object
18 19 20 |
# File 'lib/evented_bluepill/process_conditions/always_true.rb', line 18 def check(value) true end |
#run ⇒ Object
14 15 16 |
# File 'lib/evented_bluepill/process_conditions/always_true.rb', line 14 def run 1 end |