Rt

Component Documentation

matestack core component: Rt

Show specs

The HTML rt tag implemented in ruby.

Parameters

This component can take 2 optional configuration params and optional content.

# id (optional)

Expects a string with all ids the rt should have.

# class (optional)

Expects a string with all classes the rt should have.

Example 1: Yield a given block

rt id: "foo", class: "bar" do
  plain 'Hello World' # optional content
end

returns

<rt id="foo" class="bar">
  Hello World
</rt>

Example 2: Render options[:text] param

rt id: "foo", class: "bar", text: 'Hello World'

returns

<rt id="foo" class="bar">
  Hello World
</rt>