Sha256: 7c725c4fcb07f74aa29db82f7c68e2668ff643de7a6d931f09ac44dbea4ea481

Contents?: true

Size: 298 Bytes

Versions: 2

Compression:

Stored size: 298 Bytes

Contents

require "must/version"

# Must
module Must
  class Invalid < StandardError; end
  class ShouldNotEmpty  < Invalid; end

  def must(*args)
    if args.size > 0
      Rule.new(self).be.kind_of(*args)
    else
      Rule.new(self)
    end
  end
end

require "must/rule"
Object.__send__ :include, Must

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
must-0.2.4 lib/must.rb
must-0.2.3 lib/must.rb