Project

General

Profile

Bug #14719 » simple_delegator_on_boolean.rb

theirishpenguin (Declan McGrath), 04/27/2018 04:16 PM

 
#!/usr/bin/env ruby

class BoldBool < SimpleDelegator
end

false_bool = BoldBool.new(false)

if false_bool
puts "I'm evaluated as true but I should be false."
end
(1-1/3)