Class: Aureus::ToolbarButton

Inherits:
Renderable show all
Defined in:
lib/aureus/toolbar.rb

Instance Method Summary collapse

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

#renderObject



56
57
58
# File 'lib/aureus/toolbar.rb', line 56

def render
	 "li", link_to(@text,@url,*@args)
end