Class: Wee::WrapperDecoration

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

Instance Attribute Summary

Attributes inherited from Decoration

#next

Instance Method Summary collapse

Methods inherited from Decoration

#global?, #process_callbacks, #render_presenter!, #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.



168
169
170
# File 'lib/wee/decoration.rb', line 168

def render(r)
  render_inner(r)
end

#render_inner(r) ⇒ Object



172
173
174
# File 'lib/wee/decoration.rb', line 172

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