Class: Typography::InlineLink
- Inherits:
-
Base
- Object
- Base
- Typography::InlineLink
- Defined in:
- lib/phlex_ui/typography/inline_link.rb
Instance Method Summary collapse
-
#initialize(href:, **attrs) ⇒ InlineLink
constructor
A new instance of InlineLink.
- #view_template ⇒ Object
Constructor Details
#initialize(href:, **attrs) ⇒ InlineLink
Returns a new instance of InlineLink.
5 6 7 8 |
# File 'lib/phlex_ui/typography/inline_link.rb', line 5 def initialize(href:, **attrs) super(**attrs) @href = href end |
Instance Method Details
#view_template ⇒ Object
10 11 12 |
# File 'lib/phlex_ui/typography/inline_link.rb', line 10 def view_template(&) a(href: @href, **attrs, &) end |