Yes, it is incomplete. I was illustrating that the variable aString is
of type string just before calling the method, and right inside the
method, in the very first command, it is diagnosed as a Class.
– I renamed the parameter aString in the method definition. That does
not work.
– I moved the order of calling the method earlier/later in the call
sequence. No dice.
– I retyped the line. Didn’t work.
No that I expected these to make a difference.
I redefined aString inside the method, thus:
def process(aString)
aString = “ohmy”
puts aString
end
It works, but doesn’t solve the problem.
I wonder what kind of statement that I might have made somewhere in
the program that would turn a string variable into a Class?
At Thu, 22 Dec 2005 15:42:51 +0900,
basi wrote in [ruby-talk:172076]:
Yes, it is incomplete. I was illustrating that the variable aString is
of type string just before calling the method, and right inside the
method, in the very first command, it is diagnosed as a Class.