class ActiveSupport::CodeGenerator::MethodSet
def define_cached_method(name, as: name)
def define_cached_method(name, as: name) name = name.to_sym as = as.to_sym @methods.fetch(name) do unless @cache.method_defined?(as) yield @sources end @methods[name] = as end end