lib/jan/validator.rb in jan-0.0.3 vs lib/jan/validator.rb in jan-0.0.4
- old
+ new
@@ -1,8 +1,8 @@
require "jan/parser"
require "jan/check_digit_calculator"
-class Jan
+class Jan < ::String
module Validator
module_function
def validate(code)
validate_size(code.to_s) && validate_check_digit(code.to_s)