module Assist::ParamsHelper
Public Class Methods
included(base)
click to toggle source
# File lib/assist/params_helper.rb, line 3 def self.included(base) base.extend(ClassMethods) end
Private Instance Methods
normalize(value)
click to toggle source
# File lib/assist/params_helper.rb, line 15 def normalize(value) self.class.normalize(value) end
normalize_keys(hash)
click to toggle source
# File lib/assist/params_helper.rb, line 9 def normalize_keys(hash) new_hash = {} hash.each { |key, val| new_hash[normalize(key)] = val } new_hash end