Class: Wee::PageDecoration
- Inherits:
-
WrapperDecoration
- Object
- Presenter
- Decoration
- WrapperDecoration
- Wee::PageDecoration
- Defined in:
- lib/wee/decoration.rb
Overview
class FormDecoration
Instance Attribute Summary
Attributes inherited from Decoration
Instance Method Summary collapse
- #global? ⇒ Boolean
-
#initialize(title = '') ⇒ PageDecoration
constructor
A new instance of PageDecoration.
- #render(r) ⇒ Object
Methods inherited from WrapperDecoration
Methods inherited from Decoration
#process_callbacks, #render_on, #render_presenter_on, #state
Methods inherited from Presenter
#process_callbacks, #render_on, #renderer_class, #state
Constructor Details
#initialize(title = '') ⇒ PageDecoration
Returns a new instance of PageDecoration.
230 231 232 233 |
# File 'lib/wee/decoration.rb', line 230 def initialize(title='') @title = title super() end |
Instance Method Details
#global? ⇒ Boolean
235 |
# File 'lib/wee/decoration.rb', line 235 def global?() true end |
#render(r) ⇒ Object
237 238 239 |
# File 'lib/wee/decoration.rb', line 237 def render(r) r.page.title(@title).with { render_inner(r) } end |