SkillAgentSearch skills...

Rehash

Simple by key / value rehashing for Ruby MRI

Install / Use

/learn @methodmissing/Rehash
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Simple by key / value rehashing for Ruby MRI (c) 2010 Lourens Naudé (methodmissing) and James Tucker (raggi)

http://github.com/methodmissing/rehash

This library works with Ruby 1.8 and 1.9 and exposes the following API :

hash = { 'a' => 1, 'b' => 2 } hash.rekey!(:upcase) hash == { 'A' => 1, 'B' => 2 }

hash = { 1 => 'a, 2 => 'b' } hash.revalue!(:upcase) hash == { 1 => 'A', 2 => 'B' }

To run the test suite:

rake

Work in progress, thanks for watching!

View on GitHub
GitHub Stars9
CategoryDevelopment
Updated5y ago
Forks0

Languages

C

Security Score

55/100

Audited on Jan 13, 2021

No findings