Sha256: db1900eb8a6d94b78eec9a3b73be649a3460d86d284d8c50a61748047d2bf732

Contents?: true

Size: 299 Bytes

Versions: 6

Compression:

Stored size: 299 Bytes

Contents

module SolidAssert

  # Null assert implementation. Used when the assertions are disabled
  module NullAssert

    # Empty implemention of {Assert#assert}
    def assert(condition, message=nil)
    end

    # Empty implemention of {Assert#invariant}
    def invariant(message=nil)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
solid_assert-0.7.3 lib/solid_assert/null_assert.rb
solid_assert-0.7.2 lib/solid_assert/null_assert.rb
solid_assert-0.7.1 lib/solid_assert/null_assert.rb
solid_assert-0.7.0 lib/solid_assert/null_assert.rb
solid_assert-0.6.0 lib/solid_assert/null_assert.rb
solid_assert-0.5.0 lib/solid_assert/null_assert.rb