Class: RideTheStreetcar::StatementsList::Navigate
- Inherits:
-
Object
- Object
- RideTheStreetcar::StatementsList::Navigate
- Includes:
- Streamlined::Renderable
- Defined in:
- lib/ride_the_streetcar/statements_list.rb
Instance Method Summary collapse
-
#initialize(href:) ⇒ Navigate
constructor
A new instance of Navigate.
- #template ⇒ Object
Constructor Details
#initialize(href:) ⇒ Navigate
Returns a new instance of Navigate.
6 7 8 |
# File 'lib/ride_the_streetcar/statements_list.rb', line 6 def initialize(href:) @href = href end |
Instance Method Details
#template ⇒ Object
10 11 12 13 14 15 |
# File 'lib/ride_the_streetcar/statements_list.rb', line 10 def template html -> { <<~HTML <sc-navigate href="#{text->{ @href }}"></sc-navigate> HTML } end |