This is useful if you are trying to create class methods metaprogramatically:
def self.create_methods(method_name) # To create instance methods: defi
You could also do something like this without relying on define_method:
A.class_eval do def self.class_method_name(param) puts param end end A.class_method_name("hello") # outputs "hello" and returns nil