method
methods
v1_8_6_287 -
Show latest stable
-
0 notes -
Class: Object
- 1_8_6_287 (0)
- 1_8_7_72 (0)
- 1_8_7_330 (0)
- 1_9_1_378 (-6)
- 1_9_2_180
- 1_9_3_125
- 1_9_3_392 (-3)
- What's this?
methods(...)
public
Returns a list of the names of methods publicly accessible in obj. This will include all the methods accessible in obj’s ancestors.
class Klass def kMethod() end end k = Klass.new k.methods[0..9] #=> ["kMethod", "freeze", "nil?", "is_a?", "class", "instance_variable_set", "methods", "extend", "__send__", "instance_eval"] k.methods.length #=> 42


