Runtime assertions for Ruby literal.fun
ruby
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove boolean type coercion

I can't remember why this was added.

-6
-6
lib/literal/types/boolean_type.rb
··· 2 2 3 3 # @api private 4 4 module Literal::Types::BooleanType 5 - COERCION = proc { |value| !!value } 6 - 7 5 def self.inspect = "_Boolean" 8 6 9 7 def self.===(value) 10 8 true == value || false == value 11 - end 12 - 13 - def to_proc 14 - COERCION 15 9 end 16 10 17 11 freeze