Class: Wee::WrapperDecoration

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

Overview

class Delegate

Direct Known Subclasses

FormDecoration, PageDecoration

Instance Attribute Summary

Attributes inherited from Decoration

#next

Instance Method Summary collapse

Methods inherited from Decoration

#global?, #process_callbacks, #render_presenter_on, #state

Methods inherited from Presenter

#process_callbacks, #renderer_class, #state

Instance Method Details

#render(r) ⇒ Object

Overwrite this method, and call render_innerĀ® where you want the inner content to be drawn.



210
211
212
# File 'lib/wee/decoration.rb', line 210

def render(r)
  render_inner(r)
end

#render_inner(r) ⇒ Object



214
215
216
# File 'lib/wee/decoration.rb', line 214

def render_inner(r)
  r.render_decoration(@next)
end