[Nitro] Building objects from Strings

gabriele renzi surrender_it at yahoo.it
Wed Aug 9 06:31:31 EDT 2006

TRANS ha scritto:

>>A better solution could be using YAML.load on the given String.
>>Someone has other ideas or could point me to something in facets (i.e.
>>core/kernel/parse_literal) ?
> Try:
>   YAML.load( "--ruby/object:#{type} {}" )

mh.. I assume there is #{value} missing somewhere there?

> Might be worth adding to Facets.

indeed, or to yaml.rb itself.


blog en: http://www.riffraff.info
blog it: http://riffraff.blogsome.com
jabber : rff.rff at gmail dot com

More information about the Nitro-general mailing list