Class: Deface::Actions::InsertAfter
- Inherits:
-
ElementAction
- Object
- Action
- ElementAction
- Deface::Actions::InsertAfter
- Defined in:
- lib/deface/actions/insert_after.rb
Instance Attribute Summary
Attributes inherited from ElementAction
Instance Method Summary collapse
Methods inherited from ElementAction
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 |