Class | Markaby::CssProxy |
In: |
lib/markaby/cssproxy.rb
|
Parent: | Object |
Class used by Markaby::Builder to store element options. Methods called against the CssProxy object are added as element classes or IDs.
See the README for examples.
Creates a CssProxy object. The opts and block passed in are stored until the element is created by Builder.tag!
Adds attributes to an element, for internal use only. For example, if you want to write a wrapper which sets a bunch of default attributes for a certain tag. Like the default `img’ method included with Markaby automatically sets an empty alt attribute.