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
#backtrack, #process_callbacks, #render_on, #render_presenter_on
Methods inherited from Presenter
#backtrack, #process_callbacks, #render_on, #renderer_class
Constructor Details
#initialize(title = '') ⇒ PageDecoration
Returns a new instance of PageDecoration.
229 230 231 232 |
# File 'lib/wee/decoration.rb', line 229 def initialize(title='') @title = title super() end |
Instance Method Details
#global? ⇒ Boolean
234 |
# File 'lib/wee/decoration.rb', line 234 def global?() true end |
#render(r) ⇒ Object
236 237 238 |
# File 'lib/wee/decoration.rb', line 236 def render(r) r.page.title(@title).with { render_inner(r) } end |