Categories: None [Edit]
safe_parser
Parses a hash string of the format `'{ :a => "something" }'` into an actual ruby hash object `{ a: "something" }`.
This is useful when you by mistake serialize hashes and save it in database column or a text file and you want to
convert them back to hashes without the security issues of executing `eval(hash_string)`.
By default only following classes are allowed to be deserialized:
* TrueClass
* FalseClass
* NilClass
* Numeric
* String
* Array
* Hash
A HashParser::BadHash exception is thrown if unserializable values are present.
Total
Ranking: 19,043 of 192,290
Downloads: 91,900
Daily
Ranking: 33,113 of 192,263
Downloads: 5
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 166 | 296,457,852 | rdoc |
| 350 | 136,386,852 | ruby_parser |
| 2,348 | 9,235,814 | hoe |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | bibstha |