Method: Tiny::HTML#source

Defined in:
lib/tiny/html.rb

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

Shortcut for html_tag(:source)

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:



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

tag_def 'source'