How to get class methods?
ruby
Solution
You can pass the `false` parameter to Object#methods.
class Foo
def self.bar
end
end
Foo.methods(false) #=> [:bar]
Problem
Ruby `Module` has a method `instance_methods` that can return a list of methods of that class. But how to retrieve class methods list of a class?