class ActiveSupport::CodeGenerator

def define_cached_method(name, namespace:, as: name, &block)

def define_cached_method(name, namespace:, as: name, &block)
  @namespaces[namespace].define_cached_method(name, as: as, &block)
end