Sha256: 0c5e555a91f57ecd86f68f34b0d5cd73889665e175e5de09d96099fc0120a014

Contents?: true

Size: 600 Bytes

Versions: 71

Compression:

Stored size: 600 Bytes

Contents

# TODO(sissel): This requires ruby 1.9.x
module Insist::Comparators
  # value != expected
  def !=(expected)
    assert(value != expected,
           "Expected #{value.inspect} != #{expected.inspect}")
  end # def !=

  # TODO(sissel): This requires ruby 1.9.x
  # value =~ pattern
  def =~(pattern)
    assert(value =~ pattern,
           "Expected #{value.inspect} =~ #{pattern.inspect}")
  end # def =~

  # TODO(sissel): This requires ruby 1.9.x
  # value !~ pattern
  def !~(pattern)
    assert(value !~ pattern,
           "Expected #{value.inspect} !~ #{pattern.inspect}")
  end # def !~
end

Version data entries

71 entries across 67 versions & 18 rubygems

Version Path
able-neo4j-1.0.0 vendor/bundle/jruby/1.9/gems/insist-1.0.0/lib/insist/comparators19.rb
logstash-input-beats-2.0.2 vendor/jruby/1.9/gems/insist-1.0.0/lib/insist/comparators19.rb
logstash-input-beats-2.0.2 vendor/jruby/1.9/gems/logstash-codec-json-2.0.3/vendor/gems/insist-1.0.0/lib/insist/comparators19.rb
logstash-codec-json-2.0.3 vendor/gems/insist-1.0.0/lib/insist/comparators19.rb
logstash-input-beats-0.9.2 vendor/jruby/1.9/gems/insist-1.0.0/lib/insist/comparators19.rb
logstash-input-beats-0.9.1 vendor/jruby/1.9/gems/insist-1.0.0/lib/insist/comparators19.rb
insist-1.0.0 lib/insist/comparators19.rb
insist-0.0.8 lib/insist/comparators19.rb
insist-0.0.7 lib/insist/comparators19.rb
insist-0.0.6 lib/insist/comparators19.rb
insist-0.0.5 lib/insist/comparators19.rb