Class: Deface::Actions::InsertAfter

Inherits:
ElementAction show all
Defined in:
lib/deface/actions/insert_after.rb

Instance Attribute Summary

Attributes inherited from ElementAction

#source_element

Instance Method Summary collapse

Methods inherited from ElementAction

#initialize

Methods inherited from Action

#initialize, #range_compatible?, to_sym

Constructor Details

This class inherits a constructor from Deface::Actions::ElementAction

Instance Method Details

#execute(target_element) ⇒ Object



4
5
6
# File 'lib/deface/actions/insert_after.rb', line 4

def execute(target_element)
  target_element.first.after(source_element)
end