Module: Cattri::ClassMethods
- Defined in:
- lib/cattri.rb
Overview
Provides opt-in class-level introspection support.
This allows users to call methods like ‘.attribute_defined?`, `.attribute_methods`, etc., to inspect which attributes have been defined.
Instance Method Summary collapse
-
#with_cattri_introspection ⇒ void
Enables Cattri’s attribute introspection methods on the current class.
Instance Method Details
#with_cattri_introspection ⇒ void
This method returns an undefined value.
Enables Cattri’s attribute introspection methods on the current class.
55 56 57 |
# File 'lib/cattri.rb', line 55 def with_cattri_introspection include(Cattri::Introspection) # steep:ignore end |