Sha256: fdab1ccd00a215032c562154bb3cde30d6f3ae9ac327852627a151298d3e04db

Contents?: true

Size: 478 Bytes

Versions: 73

Compression:

Stored size: 478 Bytes

Contents

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

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
coveragebook_components-0.6.4 app/components/coco/concerns/extendable.rb
coveragebook_components-0.6.3 app/components/coco/concerns/extendable.rb
coveragebook_components-0.6.2 app/components/coco/concerns/extendable.rb
coveragebook_components-0.6.1 app/components/coco/concerns/extendable.rb
coveragebook_components-0.6.0 app/components/coco/concerns/extendable.rb
coveragebook_components-0.5.7 app/components/coco/concerns/extendable.rb
coveragebook_components-0.5.6 app/components/coco/concerns/extendable.rb
coveragebook_components-0.5.5 app/components/coco/concerns/extendable.rb
coveragebook_components-0.5.4 app/components/coco/concerns/extendable.rb
coveragebook_components-0.5.3 app/components/coco/concerns/extendable.rb
coveragebook_components-0.5.2 app/components/coco/concerns/extendable.rb
coveragebook_components-0.5.1 app/components/coco/concerns/extendable.rb
coveragebook_components-0.5.0 app/components/coco/concerns/extendable.rb