I am encountering a very strange argument error.  I simplified my code
so that it focuses on the specific issue.  Fortunately (or
unfortunately) the simplified code continued to produce the error.  The
error that I am getting is:

./test1:18: syntax error, unexpected ',', expecting ')'
    @@myClassVar.capture=('myKey','myValue')

And here is the code that produces it:

class Class1
  def initialize()
    @capture = Hash.new
  end
  def capture=(key,value)
    @capture[key]=value
  end
  def capture(key)
    return @capture[key]
  end
end
class Class2
  @@myClassVar=Class1.new()
  def Class2.xtol()
    @@myClassVar.capture=('myKey','myValue')
    return @@myClassVar.capture()
  end
end
puts(Class2.xtol())

I'm tearing my hair out over this one; so, any help would be greatly
appreciated.  Thanks.

       ... doug

                                  ^

-- 
Posted via http://www.ruby-forum.com/.