Class: Wee::OidDecoration
- Inherits:
-
WrapperDecoration
- Object
- Presenter
- Decoration
- WrapperDecoration
- Wee::OidDecoration
- Defined in:
- lib/wee/decoration.rb
Overview
Renders a <div> tag with a unique “id” around the wrapped component. Useful for components that want to update their content in-place using AJAX.
Instance Attribute Summary
Attributes inherited from Decoration
Instance Method Summary collapse
Methods inherited from WrapperDecoration
Methods inherited from Decoration
#global?, #process_callbacks, #render!, #render_presenter!, #state
Methods inherited from Presenter
#process_callbacks, #render!, #renderer_class, #state
Instance Method Details
#render(r) ⇒ Object
185 186 187 |
# File 'lib/wee/decoration.rb', line 185 def render(r) r.div.oid.with { render_inner(r) } end |