Class: Browser::DOM::Attribute
- Includes:
- Native
- Defined in:
- opal/browser/dom/attribute.rb
Overview
Encapsulates an Element attribute.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The name of the attribute.
-
#value ⇒ String
The value of the attribute.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ String (readonly)
Returns the name of the attribute.
9 |
# File 'opal/browser/dom/attribute.rb', line 9 alias_native :name |
#value ⇒ String
Returns the value of the attribute.
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 |