Class: RubyUI::InlineLink
- Defined in:
- lib/ruby_ui/typography/inline_link.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
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/ruby_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/ruby_ui/typography/inline_link.rb', line 10 def view_template(&) a(href: @href, **attrs, &) end |