Class: EventedBluepill::ProcessConditions::AlwaysTrue

Inherits:
ProcessCondition
  • Object
show all
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

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, options = {})
  @below = options[: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

#runObject



14
15
16
# File 'lib/evented_bluepill/process_conditions/always_true.rb', line 14

def run
  1
end