Class: Wee::PageDecoration

Inherits:
WrapperDecoration show all
Defined in:
lib/wee/decoration.rb

Overview

class FormDecoration

Instance Attribute Summary

Attributes inherited from Decoration

#next

Instance Method Summary collapse

Methods inherited from WrapperDecoration

#render_inner

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

Returns:

  • (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