lib/uuid/ncname.rb in uuid-ncname-0.1.2 vs lib/uuid/ncname.rb in uuid-ncname-0.1.3

- old
+ new

@@ -96,10 +96,10 @@ # @param radix [32, 64] either the number 32 or the number 64. # # @return [String] The NCName-formatted UUID. def self.to_ncname uuid, radix: 64 - raise 'Radix must be either 32 or 64' unless [32, 64].any? radix + raise 'Radix must be either 32 or 64' unless [32, 64].include? radix raise 'UUID must be something stringable' if uuid.nil? or not uuid.respond_to? :to_s uuid = uuid.to_s