Borges::HtmlAttributes (Class)

In: lib/Borges/HTML/HtmlAttributes.rb
Parent: Object

HtmlAttributes is a set of attributes to be attached to an HtmlElement.

Methods

[]   []=   method_missing   new   to_s  

Public Class methods

Create an empty attribute set.

Public Instance methods

Set attr to true. THIS WILL NOT RETRIEVE THE VALUE OF AN ATTRIBUTE.

Set attr to value.

Set an attribute to a value (or true). method_missing handles one or two arguments, setting the value to true if given one argument, and to the value if given two. method_missing also strips an ’=’ on the message sent.

[Validate]