From: "David A. Black" Date: 2009-09-18T20:27:46+09:00 Subject: Re: block issues... Hi -- On Fri, 18 Sep 2009, Dylan Lukes wrote: > David A. Black wrote: >> Hi -- >> >> On Fri, 18 Sep 2009, Dylan Lukes wrote: >> >>>>> initialization though. The only problem is the inherited initialize from >>>> "interval" => (30 * 60), >>>> >>> >>> Print "Config Interval: #{config["interval"]} >>> >>> Since the key is a string, it raises some minor issues. >> >> It should be OK except you're missing the closing ". >> >> >> David > > That was a type on my part. It appears as such in the program: > > Print "Config Interval: #{config["interval"]}" > > Also it does not work fine. It's interpreted as two distinct strings. I > have tried using /' or /" but both just spawn more errors.... config = { "interval" => "hello" } puts "Config Interval: #{config["interval"]}" Output: Config Interval: hello So it's not a quotation-mark thing. (If you do want to escape quotation marks, you need to use \, not / .) David -- David A. Black, Director Ruby Power and Light, LLC (http://www.rubypal.com) Ruby/Rails training, consulting, mentoring, code review Book: The Well-Grounded Rubyist (http://www.manning.com/black2)