From: 7stud -- Date: 2009-03-19T11:04:58+09:00 Subject: Re: Is this how you start a hash? Power One wrote: > > Also when I try to use a snippet in irb: > @name = options[:name] || "Unnamed Bot" > NameError: undefined local variable or method `options' for main:Object > from (irb):1 > from :0 > h = {:name => "Joe", :age => 20} name = h[:name] puts name --output:-- Joe h = {:age => 30} name = h[:name] || "Unamed Bot" puts name --output:-- Unamed Bot -- Posted via http://www.ruby-forum.com/.