Method: Class#write_inheritable_attribute

Defined in:
lib/autumn/inheritable_attributes.rb

#write_inheritable_attribute(key, value) ⇒ Object



117
118
119
120
121
122
# File 'lib/autumn/inheritable_attributes.rb', line 117

def write_inheritable_attribute(key, value)
  if inheritable_attributes.equal?(EMPTY_INHERITABLE_ATTRIBUTES)
    @inheritable_attributes = {}
  end
  inheritable_attributes[key] = value
end