Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does one know what built-in methods exist in ruby?

Tags:

ruby

Is there a list with all the built in methods? When I have a problem someone will say something like "ruby has a built in method for that"... Well how would one know that?

like image 561
thatonegirlo Avatar asked Nov 01 '25 16:11

thatonegirlo


1 Answers

You can check the Ruby Standard Library API or the Core API (scroll down a bit).

Both are extremely useful, especially the Core API.

For example, if you're wondering what things standard arrays can do see: The Ruby Core page On Array

Happy coding!

like image 167
whitehat101 Avatar answered Nov 04 '25 05:11

whitehat101



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!