class Rescodegen::CodeSafeKeyGenerator
Public Instance Methods
code_safe_keys_from_keys(keys)
click to toggle source
# File lib/rescodegen/key_generator/code_safe_key_generator.rb, line 6 def code_safe_keys_from_keys(keys) keys.map { |key| key.replace_string_format_specifiers .replace_unsupported_characters .replace_whitespace .remove_duplicate_underscores .trim_underscores .protect_from_numbers } end