lib/iron/web/html/element.rb in iron-web-1.0.1 vs lib/iron/web/html/element.rb in iron-web-1.0.2
- old
+ new
@@ -109,9 +109,17 @@
else
# There really is no method...
super
end
end
+
+ def [](key)
+ @attrs[key.to_sym]
+ end
+
+ def []=(key, value)
+ @attrs[key.to_sym] = value
+ end
def to_s
render
end