Class: Kanal::Core::Helpers::ConditionFinder::ConditionFindResult
- Inherits:
-
Object
- Object
- Kanal::Core::Helpers::ConditionFinder::ConditionFindResult
- Defined in:
- lib/kanal/core/helpers/condition_finder.rb
Instance Attribute Summary collapse
-
#found_condition ⇒ Object
readonly
Returns the value of attribute found_condition.
-
#found_condition_pack ⇒ Object
readonly
Returns the value of attribute found_condition_pack.
Instance Method Summary collapse
- #found_anything? ⇒ Boolean
-
#initialize(found_condition_pack: false, found_condition: false) ⇒ ConditionFindResult
constructor
A new instance of ConditionFindResult.
Constructor Details
#initialize(found_condition_pack: false, found_condition: false) ⇒ ConditionFindResult
Returns a new instance of ConditionFindResult.
11 12 13 14 |
# File 'lib/kanal/core/helpers/condition_finder.rb', line 11 def initialize(found_condition_pack: false, found_condition: false) @found_condition_pack = found_condition_pack @found_condition = found_condition end |
Instance Attribute Details
#found_condition ⇒ Object (readonly)
Returns the value of attribute found_condition.
8 9 10 |
# File 'lib/kanal/core/helpers/condition_finder.rb', line 8 def found_condition @found_condition end |
#found_condition_pack ⇒ Object (readonly)
Returns the value of attribute found_condition_pack.
8 9 10 |
# File 'lib/kanal/core/helpers/condition_finder.rb', line 8 def found_condition_pack @found_condition_pack end |
Instance Method Details
#found_anything? ⇒ Boolean
16 17 18 |
# File 'lib/kanal/core/helpers/condition_finder.rb', line 16 def found_anything? @found_condition || @found_condition_pack end |