Method: Tiny::HTML#a

Defined in:
lib/tiny/html.rb

#a(attrs_or_content = {}, attrs = nil) { ... } ⇒ String

common tags Shortcut for html_tag(:a)

Parameters:

  • attrs_or_content (Hash, String) (defaults to: {})

    Tag’s attributes or content.

  • attrs (Hash) (defaults to: nil)

    Tag’s attributes if content string passed.

Yields:

  • Content block.

Returns:

See Also:



79
# File 'lib/tiny/html.rb', line 79

tag_def 'a'