Registry / web-framework / decorators

decorators

JSON →
library2.0.6rbrubygemsunverified

Manages the process of loading decorators into your Rails application.

gem install decorators
INSTALL
IMPORT
SIG · DECORATORS
D
decorators
web-frameworkrubyv2.0.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Decorators
require 'decorators'

Define and use a decorator in Rails.

require 'decorators' # In Rails, decorators are loaded automatically class MyDecorator < Decorators::Base def decorate "Decorated: #{object.name}" end end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.0.6latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
decorators — gem install decorators · libregistry