Class: Aureus::Components::NavigationButton
- Inherits:
-
Renderable
- Object
- Renderable
- Aureus::Components::NavigationButton
- Defined in:
- lib/aureus/components/navigation.rb
Instance Method Summary collapse
-
#initialize(content) ⇒ NavigationButton
constructor
A new instance of NavigationButton.
- #render ⇒ Object
Methods inherited from Renderable
#compact, #compact_render, #content_tag, #init
Constructor Details
#initialize(content) ⇒ NavigationButton
Returns a new instance of NavigationButton.
36 37 38 |
# File 'lib/aureus/components/navigation.rb', line 36 def initialize content @content = content end |
Instance Method Details
#render ⇒ Object
40 41 42 |
# File 'lib/aureus/components/navigation.rb', line 40 def render content_tag 'li', @content end |