Class: Aureus::Components::Content
- Inherits:
-
Renderable
- Object
- Renderable
- Aureus::Components::Content
- Defined in:
- lib/aureus/components/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.
7 8 9 |
# File 'lib/aureus/components/content.rb', line 7 def initialize content @content = content end |
Instance Method Details
#render ⇒ Object
11 12 13 |
# File 'lib/aureus/components/content.rb', line 11 def render content_tag 'div', @content, class: 'aureus-content' end |