module PageMagic::Elements::InheritanceHooks

hooks for objects that inherit classes that include the Elements module

Public Instance Methods

inherited(clazz) click to toggle source

Copies parent element definitions on to subclass @param [Class] clazz - inheriting class

Calls superclass method
# File lib/page_magic/elements/inheritance_hooks.rb, line 9
def inherited(clazz)
  super
  clazz.element_definitions.merge!(element_definitions)
end