Sha256: a7af81a2f1e051c3302ee1bf1c498913bfd71dd604f30a5277cfc9150d0d1ea3

Contents?: true

Size: 338 Bytes

Versions: 15

Compression:

Stored size: 338 Bytes

Contents

module WildcardMatchers
  module Helpers
    define_wildcard_helper(:nil_or)

    class NilOr < ::WildcardMatchers::WildcardMatcher
      protected
      def wildcard_match(actual)
        unless actual.nil?
          errors.push(*self.class.superclass.check_errors(actual, expectation, position))
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
wildcard_matchers-0.9.2 lib/wildcard_matchers/helpers/nil_or.rb
wildcard_matchers-0.9.1 lib/wildcard_matchers/helpers/nil_or.rb
wildcard_matchers-0.9.0 lib/wildcard_matchers/helpers/nil_or.rb
wildcard_matchers-0.4.0 lib/wildcard_matchers/helpers/nil_or.rb
wildcard_matchers-0.3.1 lib/wildcard_matchers/helpers/nil_or.rb
wildcard_matchers-0.3.0 lib/wildcard_matchers/helpers/nil_or.rb
wildcard_matchers-0.2.1 lib/wildcard_matchers/helpers/nil_or.rb
wildcard_matchers-0.2.0 lib/wildcard_matchers/helpers/nil_or.rb
wildcard_matchers-0.1.8 lib/wildcard_matchers/helpers/nil_or.rb
wildcard_matchers-0.1.7 lib/wildcard_matchers/helpers/nil_or.rb
wildcard_matchers-0.1.6 lib/wildcard_matchers/helpers/nil_or.rb
wildcard_matchers-0.1.5 lib/wildcard_matchers/helpers/nil_or.rb
wildcard_matchers-0.1.4 lib/wildcard_matchers/helpers/nil_or.rb
wildcard_matchers-0.1.3 lib/wildcard_matchers/helpers/nil_or.rb
wildcard_matchers-0.1.2 lib/wildcard_matchers/helpers/nil_or.rb