Class: Kanal::Core::Helpers::ConditionFinder::ConditionFindResult

Inherits:
Object
  • Object
show all
Defined in:
lib/kanal/core/helpers/condition_finder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_conditionObject (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_packObject (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

Returns:

  • (Boolean)


16
17
18
# File 'lib/kanal/core/helpers/condition_finder.rb', line 16

def found_anything?
  @found_condition || @found_condition_pack
end