Parsr
Parsr aim to provide a way to safely evaluate a ruby expression composed only with literals, just as Python's ast.literal_eval.
Example
Parsr.literal_eval(%q{ [1, "2", 3.4 => 5..6, foo: [7, bar: /(bb|[^b]{2})/ix] ] })
Project
Parsr aim to provide a way to safely evaluate a ruby expression composed only with literals, just as Python's ast.literal_eval.
Parsr.literal_eval(%q{ [1, "2", 3.4 => 5..6, foo: [7, bar: /(bb|[^b]{2})/ix] ] })