Sha256: 980b86c1bf3194cc990fa517ac3e6053267261d0313bf05f13485040abdabc54

Contents?: true

Size: 641 Bytes

Versions: 9

Compression:

Stored size: 641 Bytes

Contents

# frozen_string_literal: true

module Kanal
  module Core
    module Helpers
      module ConditionFinder
        class ConditionFindResult
          attr_reader :found_condition_pack,
                      :found_condition

          def initialize(found_condition_pack: false, found_condition: false)
            @found_condition_pack = found_condition_pack
            @found_condition = found_condition
          end

          def found_anything?
            @found_condition || @found_condition_pack
          end
        end

        class ConditionFinder
          def find_by_name(name); end
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kanal-0.8.0 lib/kanal/core/helpers/condition_finder.rb
kanal-0.7.0 lib/kanal/core/helpers/condition_finder.rb
kanal-0.6.0 lib/kanal/core/helpers/condition_finder.rb
kanal-0.5.1 lib/kanal/core/helpers/condition_finder.rb
kanal-0.5.0 lib/kanal/core/helpers/condition_finder.rb
kanal-0.4.3 lib/kanal/core/helpers/condition_finder.rb
kanal-0.4.2 lib/kanal/core/helpers/condition_finder.rb
kanal-0.4.1 lib/kanal/core/helpers/condition_finder.rb
kanal-0.4.0 lib/kanal/core/helpers/condition_finder.rb