Sha256: 7960005c09133806360b0ba9cd2d4b655a1d06c1ba1b72546af75b6e62238731
Contents?: true
Size: 408 Bytes
Versions: 12
Compression:
Stored size: 408 Bytes
Contents
# frozen_string_literal: true module PageMagic module Elements # hooks for objects that inherit classes that include the Elements module module InheritanceHooks # Copies parent element definitions on to subclass # @param [Class] clazz - inheriting class def inherited(clazz) super clazz.element_definitions.merge!(element_definitions) end end end end
Version data entries
12 entries across 12 versions & 1 rubygems