lib/iz/binary.rb in iz-0.0.1 vs lib/iz/binary.rb in iz-0.1.0

- old
+ new

@@ -7,13 +7,14 @@ def initialize(binary) self.value = binary end def valid? - Iz::Binary.is_binary?(value) + !!Iz::Binary.is_binary?(value) end def self.is_binary?(value) + return false unless value value.to_s =~ REGEX end end end