class ActiveSupport::CodeGenerator::MethodSet
def define_cached_method(name, as: name)
Experimental RBS support (using type sampling data from the type_fusion
project).
def define_cached_method: (Symbol name, as: Symbol) -> Symbol
This signature was generated using 159 samples from 3 applications.
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