RubyGems Navigation menu

rsubhak 0.1.2

Rsubhak can be used to sanitize a params hash. For instance, remove currency symbols and/or commas from decimal fields (e.g. price, cost, quantity), thereby converting '$1,500.00' to '1500.00'. But really, it's quite generic: Recursively traverse a hash or array (ha), searching for all occurrences of hash key (k), and substituting (within their values) all occurrences of pattern (p) for replacement (r).

Gemfile:
= クリップボードにコピー コピー完了!

インストール:
=

バージョン履歴:

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

所有者:

作者:

  • Alex Batko

SHA 256チェックサム:

979c31f0b6d1f58f228eea63250a0b14ea365c54b8fa93c1547831fbb97d89cd

累計ダウンロード数 17,596

このバージョンのみ 2,947

ライセンス:

N/A

必要なRubyのバージョン: なし

リンク: