Class: Deface::Actions::ElementAction
- Defined in:
- lib/deface/actions/element_action.rb
Direct Known Subclasses
InsertAfter, InsertBefore, InsertBottom, InsertTop, Replace, ReplaceContents, SurroundAction
Instance Attribute Summary collapse
-
#source_element ⇒ Object
readonly
Returns the value of attribute source_element.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ElementAction
constructor
A new instance of ElementAction.
Methods inherited from Action
Constructor Details
#initialize(options = {}) ⇒ ElementAction
Returns a new instance of ElementAction.
6 7 8 9 10 |
# File 'lib/deface/actions/element_action.rb', line 6 def initialize( = {}) super() @source_element = [:source_element] raise(DefaceError, "No source_element option specified") unless @source_element end |
Instance Attribute Details
#source_element ⇒ Object (readonly)
Returns the value of attribute source_element.
4 5 6 |
# File 'lib/deface/actions/element_action.rb', line 4 def source_element @source_element end |