Sha256: 582b0e95f39759ad9172512f2c525f0b5b8a69d0dce204b6c11a7d2b9eb8e4a6

Contents?: true

Size: 301 Bytes

Versions: 7

Compression:

Stored size: 301 Bytes

Contents

module Stamina
  module Dsl
    module Core

      def assert(x, msg = nil)
        raise Stamina::AssertionError,
              "Assertion failed: #{msg || 'no message provided'}",
              caller unless x
      end

    end # module Core
    include Core
  end # module Dsl
end # module Stamina

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
stamina-core-0.6.1 lib/stamina-core/stamina/dsl/core.rb
stamina-core-0.6.0 lib/stamina-core/stamina/dsl/core.rb
stamina-core-0.5.4 lib/stamina-core/stamina/dsl/core.rb
stamina-core-0.5.3 lib/stamina-core/stamina/dsl/core.rb
stamina-core-0.5.2 lib/stamina-core/stamina/dsl/core.rb
stamina-core-0.5.1 lib/stamina-core/stamina/dsl/core.rb
stamina-core-0.5.0 lib/stamina-core/stamina/dsl/core.rb