Presenters and decoratorsRuby7,297EditObject-oriented programming for your views.
Decorators/View-Models for Rails Applications
ORM agnostic truly Object-Oriented view helper for Rails 3, 4 and 5
Wrap your objects with a helper to easily show them
Entities - a simple Facade to use with your models and API - extracted from Grape.
An implementation of the Exhibit pattern, as described in Objects on Rails
Delegate methods in Ruby and preserve self. Add behaviors to your objects without altering their superclass hierarchy.
Decorators on top of your ORM layer.
Flexible presenters for Rails.
Opinionated presenters for Rails 5 - without the cruft
Simple presenter system for Rails without any black magic
A simple wrapper for objects (think of Burgundy as a decorator/presenter) in less than 150 lines.
Add and remove behaviors to individual Ruby objects
A simple presenter/facade/decorator/whatever implementation.
Decorate objects in Rails without the pain of wrappers
A tiny, HAL-compliant JSON presenter for your Ruby APIs.
Delegator and SimpleDelegator in Ruby's stdlib are somewhat useful, but they pull in most of Kernel. This is not appropriate for many uses; for instance, delegation to Rails models.
Around the webAdd