how to get the list of all classes?

T

Tobias Reif

Hi

I'm writing a syntax highlighting program
Code:
 for Ruby code listings
in XML (eg DocBook) documents.

To get the global variables I do
puts Kernel.global_variables
and to get the names of some common methods I do
puts methods
and
puts Kernel.methods
 
T

Tobias Reif

How to get the list of names which includes "print"?

TIA,
Tobi
I'm writing a syntax highlighting program
Code:
 for Ruby code
listings in XML (eg DocBook) documents. [...]
Any other wordlist-returning snippets are welcome too.[/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

Members online

No members online now.

Forum statistics

Threads
474,125
Messages
2,570,748
Members
47,302
Latest member
MitziWragg

Latest Threads

Top