Class: RUI::Links::Text

Inherits:
Base
  • Object
show all
Defined in:
lib/rui/links/text.rb

Instance Method Summary collapse

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_templateObject



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, &)