ruby list all class methods

class MyClass
  def self.class_method_one
  end

  def self.class_method_two
  end

  class << self
    def class_method_three
    end

    def class_method_four
    end
  end

  def MyClass.class_method_five
  end
end

class AnotherClass
  def self.class_method_six
  end
end

# To list all class methods of a class
puts MyClass.methods(false).grep(/^class_method_/)

# To list all class methods of multiple classes
puts MyClass.methods(false).grep(/^class_method_/) + AnotherClass.methods(false).grep(/^class_method_/)