Sha256: 546f57684cef9c48e4001f8940b80505d454f5fc6d2d8110f66216bc8b60ae40

Contents?: true

Size: 325 Bytes

Versions: 4

Compression:

Stored size: 325 Bytes

Contents

module Wally
  class SearchResult
    attr_accessor :feature, :matched_feature, :matched_scenarios

    def initialize feature
      @feature = feature
      @matched_scenarios = []
    end

    def matches?
      return true if matched_feature
      return true unless matched_scenarios.empty?
      false
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wally-0.0.5 lib/wally/search_result.rb
wally-0.0.3 lib/wally/search_result.rb
wally-0.0.2 lib/wally/search_result.rb
wally-0.0.1 lib/wally/search_result.rb