class MarkMapper::Normalizers::HashKey

Public Class Methods

new(keys) click to toggle source
# File lib/mark_mapper/normalizers/hash_key.rb, line 5
def initialize(keys)
  @keys = keys
end

Public Instance Methods

call(key) click to toggle source

Public: Normalizes an options hash key

key - The key to normalize

Returns a Symbol.

# File lib/mark_mapper/normalizers/hash_key.rb, line 14
def call(key)
  @keys.fetch key.to_sym, key
end