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

#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

Returns:

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