Project

key_smith

0.0
No commit activity in last 3 years
No release in over 3 years
Convenient when some keys just aren't the way you want them to.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.6
~> 10.0
>= 0
 Project Readme

KeySmith

Convenient when some keys just aren't the way you want them to.

Installation

Add this line to your application's Gemfile:

gem 'key_smith'

And then execute

$ bundle

Or install it yourself as:

$ gem install key_smith

Usage

Get started by requiring the library.

require "key_smith"

Translate

Translate key names using a map with #translate or #translate!

hash = { :mid => "56632", :manDate => "2011-01-01" }
hash.translate mid: :machine_id, manDate: :manufactured_at
# => { machine_id: "56632", manufactured_at: "2011-01-01" }