Find out quickly methods available for class
For irb:
irb(main):001:0> Random.methods - Object.methods
=> [:srand, :rand, :new_seed]
You can also use pry:
[1] pry(main)> ls -m Random
Random.methods: new_seed rand srand
Written by Adam Stankiewicz
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#