maxirby maxirby - 2 years ago 87
Ruby Question

What is the equivalent of a Python docstring in Ruby?

In Python, you can access an object's docstring by using

. What is the equivalent action in Ruby?

Answer Source

Ruby does not have a Python __doc__ equivalent. They often use Rdoc Format for documentation.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download