module Cattri::ContextRegistry

def attribute_registry

Returns:
  • (Cattri::AttributeRegistry) - the registry used to define and apply attributes
def attribute_registry
  @attribute_registry ||= Cattri::AttributeRegistry.new(context)
end

def context

Returns:
  • (Cattri::Context) - the context used for method definition and visibility tracking
def context
  @context ||= Context.new(self) # steep:ignore
end