class Hyalite::DOM::Element::Attributes

Public Class Methods

new(element) click to toggle source
# File lib/hyalite/dom/element.rb, line 98
def initialize(element)
  @element = element
end

Public Instance Methods

[](name) click to toggle source
# File lib/hyalite/dom/element.rb, line 102
def [](name)
  @element.get_attribute(name)
end
[]=(name, value) click to toggle source
# File lib/hyalite/dom/element.rb, line 106
def []=(name, value)
  @element.set_attribute(name, value)
end
remove(name) click to toggle source
# File lib/hyalite/dom/element.rb, line 110
def remove(name)
  @element.remove_attribute(name)
end