RubyGems Navigation menu

rsubhak 0.2.0

Recursively traverse a hash or array *ha* (potentially of other nested hashes and/or arrays), doing manipulations. Two methods are available: rsubhak (do substitutions to hash values) and rstrip (strip whitespace from params hash).. Though the initial intent of the rsubhak method was to sanitize the params hash as far as removing currency symbols and/or commas from attributes such as price and quantity, there is a better approach: see the note on the homepage.

Versions:

  1. 0.2.0 - April 12, 2012 (5.5 KB)
  2. 0.1.3 - April 4, 2012 (5 KB)
  3. 0.1.2 - April 3, 2012 (5 KB)
  4. 0.1.1 - April 2, 2012 (5 KB)
  5. 0.1.0 - March 31, 2012 (5 KB)

Authors:

  • Alex Batko

Owners:

268d8ac4b9443262e1954ecd8394499f

Total downloads 6,287

For this version 2,798

Required Ruby Version: None

Licenses:

N/A

Gemfile:
gem 'rsubhak', '~> 0.2.0' = Copy to clipboard Copied!

install:
gem install rsubhak = Copy to clipboard Copied!

Links: