Ruby with Mac OS X

On Jan 19, 2008, at 10:39 AM, Tj Superfly wrote:

“Macintosh: ~Xepha$ ruby /users/Xepha/Documents/for-v/numbered_news.rb
/users/Xepha/Documents/for-v/numbered_news.rb:14: uninitialized
constant
YAML (NameError)”

I trust you have require “yaml” at the top of the file?

Sorry… your last couple of posts wound up in my spam. If you haven’t
figured this out yet, here’s what I suggest.

$ cd /wherever/your/program/lives
$ irb

require ‘rubygems’
require ‘yaml’
f = File.open(“arrays/captions_number.yaml”)
f.close
my_yaml = File.open(“arrays/captions_number.yaml”) { |yf|
YAML::load(yf) }

At each of these steps you can determine success/failure of the
operation. See if this gets you closer.