Method: Tiny::HTML#ruby

Defined in:
lib/tiny/html.rb

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

Shortcut for html_tag(:ruby)

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:



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

tag_def 'ruby'