Sha256: 39126aeadab337214114af4bb5f48df1806e2e2c629d46d65bdac25711388a62

Contents?: true

Size: 135 Bytes

Versions: 17

Compression:

Stored size: 135 Bytes

Contents

# frozen_string_literal: true

# Used to provide assertion check similar to java

def assert(message)
  raise message unless yield
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rast-0.11.1 lib/rast/assert.rb
rast-0.11.0 lib/rast/assert.rb
rast-0.10.0 lib/rast/assert.rb
rast-0.9.0 lib/rast/assert.rb
rast-0.9.0.pre lib/rast/assert.rb
rast-0.8.1.pre lib/rast/assert.rb
rast-0.8.0.pre lib/rast/assert.rb
rast-0.6.2.pre lib/rast/assert.rb
rast-0.6.1.pre lib/rast/assert.rb
rast-0.6.0.pre lib/rast/assert.rb
rast-0.4.2.pre lib/rast/assert.rb
rast-0.4.1.pre lib/rast/assert.rb
rast-0.4.0.pre lib/rast/assert.rb
rast-0.3.0.pre lib/rast/assert.rb
rast-0.1.2.pre lib/rast/assert.rb
rast-0.1.1.pre lib/rast/assert.rb
rast-0.1.0.pre lib/rast/assert.rb