Method: PageMagic::Element.inherited

Defined in:
lib/page_magic/element.rb

.inherited(clazz) ⇒ Object

called when class inherits this one

Parameters:

  • clazz (Class)

    inheriting class



56
57
58
59
60
# File 'lib/page_magic/element.rb', line 56

def inherited(clazz)
  super
  clazz.before_events.replace(before_events)
  clazz.after_events.replace(after_events)
end