class Deface::Actions::SetAttributes
Public Instance Methods
execute_for_attribute(target_element, name, value)
click to toggle source
# File lib/deface/actions/set_attributes.rb, line 4 def execute_for_attribute(target_element, name, value) target_element.remove_attribute(name) target_element.remove_attribute("data-erb-#{name}") target_element.set_attribute("data-erb-#{name}", value.to_s) end