Module: Cattri::ContextRegistry

Defined in:
lib/cattri/context_registry.rb

Overview

Provides per-class or per-module access to the attribute registry and method definition context.

This module is included into both the base and singleton class of any class using Cattri. It initializes and exposes a lazily-evaluated ‘attribute_registry` and `context` specific to the current scope, enabling safe and isolated attribute handling.