module Coco module Concerns module Extendable extend ActiveSupport::Concern class_methods do def inherited(subclass) subclass.instance_variable_set(:@_options, @_options.clone) subclass.instance_variable_set(:@_callbacks, @_callbacks.clone) subclass.instance_variable_set(:@_tag_name, @_tag_name) subclass.instance_variable_set(:@_tag_attr_names, @_tag_attr_names.clone) end end end end end