Method: Fear::Struct.inherited

Defined in:
lib/fear/struct.rb

.inherited(base) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:



59
60
61
62
# File 'lib/fear/struct.rb', line 59

def inherited(base)
  base.instance_variable_set(:@attributes, attributes)
  Fear.register_extractor(base, Fear.case(base, &:to_a).lift)
end