What about the method String#quote,

E

Eric Luo

I had found the method +quote+ of String, unfortunately it's no document
about it bundled.

I'm curious what's the functionality of this method?
ri String#quote
----------------------------------------------------------- String#quote
quote()
 
D

Daniel Berger

Eric said:
I had found the method +quote+ of String, unfortunately it's no document
about it bundled.

I'm curious what's the functionality of this method?

----------------------------------------------------------- String#quote
quote()
------------------------------------------------------------------------
(no description...)

Thanks
Eric

There is no String#quote method. Perhaps you were thinking of
Regexp#quote.

Regards,

Dan
 
E

Eric Luo

In my machine, there is an String#quote existed in the ri document,

E:\ruby\bin\ruby -v
ruby 1.8.4 (2005-12-24) [i386-mswin32]

E:\ruby\bin\ri String#quote
----------------------------------------------------------- String#quote
quote()
------------------------------------------------------------------------
(no description...)

E:\ruby\bin\ruby -e 'puts String.methods.include?("quote")'
false

I don't know why that happened?
BTW, The ri document was generated from the ruby source code.
 
E

EdUarDo

I don't know why that happened?
BTW, The ri document was generated from the ruby source code.

I don't have a String#quote method

ruby -v
ruby 1.8.4 (2005-12-24) [i386-linux]

ri String#quote
Nothing known about String#quote
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
474,206
Messages
2,571,068
Members
47,674
Latest member
scazeho

Latest Threads

Top