Total Complexity | 4 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | module Hyalite::DOM |
||
97 | class Attributes |
||
98 | def initialize(element) |
||
99 | @element = element |
||
100 | end |
||
101 | |||
102 | def [](name) |
||
103 | @element.get_attribute(name) |
||
104 | end |
||
105 | |||
106 | def []=(name, value) |
||
107 | @element.set_attribute(name, value) |
||
108 | end |
||
109 | |||
110 | def remove(name) |
||
111 | @element.remove_attribute(name) |
||
112 | end |
||
113 | end |
||
114 | end |
||
116 |