base(href = "")
public
Generate a Document Base URI element as a String.
href can either by a
string, giving the base URL for
the HREF attribute, or it can be a
has of the element’s attributes.
The passed-in no-argument block is ignored.
base("http://www.example.com/cgi")
Show source
def base(href = "")
attributes = if href.kind_of?(String)
{ "HREF" => href }
else
href
end
if block_given?
super(attributes){ yield }
else
super(attributes)
end
end