Class: Aureus::ToolbarButton
- Inherits:
-
Renderable
- Object
- Renderable
- Aureus::ToolbarButton
- Defined in:
- lib/aureus/toolbar.rb
Instance Method Summary collapse
-
#initialize(text, url, args) ⇒ ToolbarButton
constructor
A new instance of ToolbarButton.
- #render ⇒ Object
Methods inherited from Renderable
#compact, #compact_render, #content_tag, #init
Constructor Details
#initialize(text, url, args) ⇒ ToolbarButton
Returns a new instance of ToolbarButton.
50 51 52 53 54 |
# File 'lib/aureus/toolbar.rb', line 50 def initialize text, url, args @text = text @url = url @args = args end |
Instance Method Details
#render ⇒ Object
56 57 58 |
# File 'lib/aureus/toolbar.rb', line 56 def render content_tag "li", link_to(@text,@url,*@args) end |