#601: hashes with empty values cannot writeToFile --------------------------------+------------------------------------------- Reporter: lastobe...@… | Owner: lsansone...@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: --------------------------------+------------------------------------------- In objective c, empty values in nsdictionaries are handled by using the NSNull placeholder. Macruby replaces this with ruby nil on the ruby side. But when the writeToFile method is used on macruby hashes with such empty values, it fails.
== code: == {{{ b={:k => NSNull.new} b.writeToFile("/tmp/bob", atomically:true) }}} == expected result == true, and a plist should be written to /tmp/bob == actual result == 0, and no file written -- Ticket URL: <http://www.macruby.org/trac/ticket/601> MacRuby <http://macruby.org/> _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel