class Tufy::BuildField
Protected Class Methods
remove_special_characters(string)
click to toggle source
# File lib/tufy/build_field.rb, line 14 def self.remove_special_characters(string) string.gsub(/[^0-9A-Za-z]/, '') end
remove_special_characters_except_space(string)
click to toggle source
# File lib/tufy/build_field.rb, line 18 def self.remove_special_characters_except_space(string) string.gsub(/[^0-9A-Za-z. ]/, '') end
transform_date(date)
click to toggle source
# File lib/tufy/build_field.rb, line 7 def self.transform_date(date) # TODO: Remove conditional # after data-integrity issues # have been resolved date ? date.strftime("%d%m%Y") : "00000000" end