This is useful if you are trying to create class methods metaprogramatically:
def self.create_methods(method_name) # To create instance methods: defi
To be used in Rails if you want to define class methods dynamically from concern:
module Concerns::Testable extend ActiveSupport::Concern included do singleton_class.instance_eval do define_method(:test) do puts 'test' end end end end