lib/phonelib/core.rb in phonelib-0.5.5 vs lib/phonelib/core.rb in phonelib-0.5.6
- old
+ new
@@ -75,9 +75,22 @@
# setter for flag for special phone types parsing
def parse_special=(special)
@@parse_special = special
end
+ # strict check for validator, doesn't sanitize number
+ @@strict_check = false
+
+ # getter for strict check flag
+ def strict_check
+ @@strict_check
+ end
+
+ # setter for strict check flag
+ def strict_check=(strict)
+ @@strict_check = strict
+ end
+
# gem constants definition
# Main data file
FILE_MAIN_DATA = 'data/phone_data.dat'
# Extended data file