lib/iz/hexadecimal.rb in iz-0.0.1 vs lib/iz/hexadecimal.rb in iz-0.1.0
- old
+ new
@@ -7,10 +7,10 @@
def initialize(hexadecimal)
self.value = hexadecimal
end
def valid?
- Iz::Hexadecimal.is_hexadecimal?(value)
+ !!Iz::Hexadecimal.is_hexadecimal?(value)
end
def self.is_hexadecimal?(value)
value.to_s =~ REGEX
end