Hello this is a simple answer
5.methods.each {|x| p x}
Now the Explanation.
"5" is the "number" and can be any other Interger......
".methods" This will call a list of all the methods that apply to number......
".each {|x| p x}" This will print in a list all the methods.
I hope this helps.