如何让 NSJSONSerialization 在 macruby 中被识别?
framework 'foundation'
puts NSXMLDocument
#=> NSXMLDocument
puts NSJSONSerialization
#=> /Users/home/Desktop/Dropbox/script.rb:3:in `<main>':
uninitialized constant NSJSONSerialization (NameError)
还
$ macruby -v
MacRuby 0.12 (ruby 1.9.2) [universal-darwin10.0, x86_64]