Class: RUI::Links::Text
Instance Method Summary collapse
-
#initialize(href: "#", **attrs) ⇒ Text
constructor
A new instance of Text.
- #view_template ⇒ Object
Constructor Details
#initialize(href: "#", **attrs) ⇒ Text
Returns a new instance of Text.
4 5 6 7 |
# File 'lib/rui/links/text.rb', line 4 def initialize(href: "#", **attrs) @href = href @attrs = attrs end |
Instance Method Details
#view_template ⇒ Object
9 |
# File 'lib/rui/links/text.rb', line 9 def view_template(&) = a(href: @href, class: "text-blue-700 hover:cursor-pointer hover:underline", **@attrs, &) |