Class: Deface::Actions::ElementAction

Inherits:
Action
  • Object
show all
Defined in:
lib/deface/actions/element_action.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Action

#range_compatible?, to_sym

Constructor Details

#initialize(options = {}) ⇒ ElementAction

Returns a new instance of ElementAction.

Raises:



6
7
8
9
10
# File 'lib/deface/actions/element_action.rb', line 6

def initialize(options = {})
  super(options)
  @source_element = options[:source_element]
  raise(DefaceError, "No source_element option specified") unless @source_element
end

Instance Attribute Details

#source_elementObject (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