Class: Aureus::Content
- Inherits:
-
Renderable
- Object
- Renderable
- Aureus::Content
- Defined in:
- lib/aureus/content.rb
Instance Method Summary collapse
-
#initialize(content) ⇒ Content
constructor
A new instance of Content.
- #render ⇒ Object
Methods inherited from Renderable
#compact, #compact_render, #content_tag, #init
Constructor Details
#initialize(content) ⇒ Content
Returns a new instance of Content.
5 6 7 |
# File 'lib/aureus/content.rb', line 5 def initialize content @content = content end |
Instance Method Details
#render ⇒ Object
9 10 11 |
# File 'lib/aureus/content.rb', line 9 def render content_tag "div", @content, :id => "content" end |