Class: Browser::DOM::Attribute

Inherits:
Object
  • Object
show all
Includes:
NativeCachedWrapper
Defined in:
opal/browser/dom/attribute.rb

Overview

Encapsulates an Element attribute.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from NativeCachedWrapper

#restricted?, #set_native_reference

Instance Attribute Details

#nameString (readonly)



9
# File 'opal/browser/dom/attribute.rb', line 9

alias_native :name

#valueString



13
# File 'opal/browser/dom/attribute.rb', line 13

alias_native :value

Instance Method Details

#id?Boolean



20
21
22
# File 'opal/browser/dom/attribute.rb', line 20

def id?
  name == :id
end