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,160 of 189,739
Downloads: 87,773
Daily
Ranking: 34,775 of 189,725
Downloads: 2
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 |
|---|---|---|
| 173 | 275,920,213 | rdoc |
| 343 | 134,005,648 | ruby_parser |
| 2,324 | 9,140,634 | hoe |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | bibstha |