I am learning Ruby and one thing I sometimes find difficult is knowing
what methods, constants, and classes are available in a given context.
One example was I required a module, but I didn't know everything that
the module contained. Is there a way to know everything that you can
call in a given context? All the symbols that are available?
If you want to know what a unit contains, www.ruby-doc.org is a good
resource (or you can use ri, or line completion in irb). If you want
your *code* to know what's available, try these:
I am learning Ruby and one thing I sometimes find difficult is knowing what methods, constants, and classes are available in a given context.
One example was I required a module, but I didn't know everything that the module contained. Is there a way to know everything that you can call in a given context? All the symbols that are available?
If you want to know what a unit contains, www.ruby-doc.org is a good resource (or you can use ri, or line completion in irb). If you want your *code* to know what's available, try these:
"Jeff Davis" <jdavis-list@empires.org> schrieb im Newsbeitrag news:41FC41A1.6060304@empires.org...
E S wrote:
Jeff Davis wrote:
I am learning Ruby and one thing I sometimes find difficult is knowing what methods, constants, and classes are available in a given context.
One example was I required a module, but I didn't know everything that the module contained. Is there a way to know everything that you can call in a given context? All the symbols that are available?
If you want to know what a unit contains, www.ruby-doc.org is a good resource (or you can use ri, or line completion in irb). If you want your *code* to know what's available, try these: