Class: Borges::HtmlAttributes

# 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

new()

Create an empty attribute set.

## Public Instance methods

[](attr)

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

[]=(attr, value)

Set `attr` to `value`.

method_missing(attr, value = nil)

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.

to_s()

[Validate]