Module: Attrify::ClassMethods
- Defined in:
- lib/attrify.rb
Instance Method Summary collapse
Instance Method Details
#variant_registry ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/attrify.rb', line 24 def variant_registry @variant_registry ||= if superclass.respond_to?(:variant_registry) superclass.variant_registry.dup else VariantRegistry.new end end |