Class: Lilu::Remove
Instance Attribute Summary
Attributes inherited from Action
Instance Method Summary collapse
-
#initialize(*args) ⇒ Remove
constructor
A new instance of Remove.
Constructor Details
#initialize(*args) ⇒ Remove
Returns a new instance of Remove.
85 86 87 88 89 |
# File 'lib/lilu.rb', line 85 def initialize(*args) super(*args) return element.remove if element.is_a?(Hpricot::Elements) Hpricot::Elements[element].remove end |