Class: ProcessAffirmationEvaluator
- Inherits:
-
Object
- Object
- ProcessAffirmationEvaluator
- Defined in:
- lib/daily_affirmation/process_affirmation_evaluator.rb
Instance Method Summary collapse
-
#initialize(object, attribute, args) ⇒ ProcessAffirmationEvaluator
constructor
A new instance of ProcessAffirmationEvaluator.
- #process? ⇒ Boolean
Constructor Details
#initialize(object, attribute, args) ⇒ ProcessAffirmationEvaluator
Returns a new instance of ProcessAffirmationEvaluator.
2 3 4 5 6 |
# File 'lib/daily_affirmation/process_affirmation_evaluator.rb', line 2 def initialize(object, attribute, args) self.object = object self.attribute = attribute self.args = args end |
Instance Method Details
#process? ⇒ Boolean
8 9 10 |
# File 'lib/daily_affirmation/process_affirmation_evaluator.rb', line 8 def process? if_statement_passes? && allow_nil_passes? end |