From: "Hal E. Fulton" Date: 2002-07-23T08:59:07+09:00 Subject: Re: Strings and member-operators ----- Original Message ----- From: "the Bare" Newsgroups: comp.lang.ruby To: "ruby-talk ML" Sent: Monday, July 22, 2002 6:05 PM Subject: Strings and member-operators [snip - I think David addressed this?] > A problem I'm having is that I can't seem to figure out how to get at > the underlying string data (like an array) in a member function. Is it self you want? Within a method, that gives you access to the object that the nethod belongs to. class String def printme puts self end end "abc".printme # prints abc > On a related note, and regardless of any suggestions on how to do what I > want to do, how does one call a member operator in a member function? Not sure I understand this... if an object understands an operator (most/many of which are really methods) then you should be able to call it from within a method just fine. Hal Fulton