Class: DOMNode

Inherits:
Object
  • Object
show all
Defined in:
lib/grope/dom_ext.rb

Instance Method Summary collapse

Instance Method Details

#[](name) ⇒ Object



2
3
4
# File 'lib/grope/dom_ext.rb', line 2

def [](name)
  hasAttribute(name.to_s).zero? ? nil : getAttribute(name.to_s)
end