Sha256: 66edd96789d62c610229d9bc6bd3712ca4b05e97cd52d4493766b7f40dfc574a

Contents?: true

Size: 247 Bytes

Versions: 1

Compression:

Stored size: 247 Bytes

Contents

require "is_assertions/version"
require "is_assertions/is_assertions_error"

module IsAssertions

	def is(value, type)
		if !value.is_a?(type)
			raise IsAssertionsError, "value #{value.inspect} must be of type #{type}", caller(1)
		end
	end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
is_assertions-0.0.2 lib/is_assertions.rb