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.
26 27 28 |
# File 'lib/aureus/components/navigation.rb', line 26 def initialize(content) @content = content end |
Instance Method Details
#render ⇒ Object
30 31 32 |
# File 'lib/aureus/components/navigation.rb', line 30 def render content_tag 'li', @content end |