Show specs
The HTML <address>
tag implemented in ruby.
This component can take 2 optional configuration params and either yield content or display what gets passed to the text
configuration param.
Expects a string with all ids the address should have.
Expects a string with all classes the address should have.
address do
plain 'Codey McCodeface'
br
plain '1 Developer Avenue'
br
plain 'Techville'
end
returns
<address>
Codey McCodeface<br>
1 Developer Avenue<br>
Techville
</address>
address text: 'PO Box 12345'
returns
<address>
PO Box 12345
</address>