Return true if the instance is the true value.

Return false if the instance is the false value. Abort if the instance is not a boolean value.

Property definitions

nitc $ Instance :: is_true
	# Return `true` if the instance is the `true` value.
	#
	# Return `false` if the instance is the `false` value.
	# Abort if the instance is not a boolean value.
	fun is_true: Bool do abort
src/interpreter/naive_interpreter.nit:717,2--721,27

nitc $ PrimitiveInstance :: is_true
	redef fun is_true
	do
		if val == true then return true
		if val == false then return false
		abort
	end
src/interpreter/naive_interpreter.nit:807,2--812,4