On 22:50 Mon 24 Jan     , sigzero / gmail.com wrote:
> I just installed 1.8.2 to get a feel for Ruby. I tried the hello.rb
> file.
> 
> This works:
> class Hello
> 
> attr_reader :msg
> 
> def initialize
> 
> @msg = "Hello, World"
> 
> end
> 
> end
> 
> h = Hello.new
> 
> puts h.msg
> 
> print "Press RETURN"
> 
> $stdin.gets
> 
> This does not:
> 
> class Hello
> attr_reader :msg
> 
> def initialize
> @msg = "Hello, World"
> end
> end
> 
> h = Hello.new
> puts h.msg
> print "Press RETURN"
> $stdin.gets
> 
> hello.rb:2: formal argument cannot be an instance variable
> It is the same code except the spacing. What is the deal?

Both versions worked for me. :(

Can anyone else duplicate the problem?

- Jamis

-- 
Jamis Buck
jamis_buck / byu.edu
http://jamis.jamisbuck.org
------------------------------
"I am Victor of Borge. You will be assimil-nine-ed."