diff --git a/mrblib/enum.rb b/mrblib/enum.rb index 53f2119b0..47e7399bf 100644 --- a/mrblib/enum.rb +++ b/mrblib/enum.rb @@ -23,23 +23,20 @@ module Enumerable # # ISO 15.3.2.2.1 def all?(&block) - st = true if block self.each{|val| unless block.call(val) - st = false - break + return false end } else self.each{|val| unless val - st = false - break + return false end } end - st + true end ##