| Total Complexity | 4 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | module Hyalite::DOM |
||
| 83 | class Attributes |
||
| 84 | def initialize(element) |
||
| 85 | @element = element |
||
| 86 | end |
||
| 87 | |||
| 88 | def [](name) |
||
| 89 | @element.get_attribute(name) |
||
| 90 | end |
||
| 91 | |||
| 92 | def []=(name, value) |
||
| 93 | @element.set_attribute(name, value) |
||
| 94 | end |
||
| 95 | |||
| 96 | def remove(name) |
||
| 97 | @element.remove_attribute(name) |
||
| 98 | end |
||
| 99 | end |
||
| 100 | end |
||
| 102 |