Selenium 2.0 (WebDriver) decorators for web-elements that provide specific methods fot each web-element
Decorate your existing Ruby object with veils and some its methods will be cached.
This library is used to decorate ActiveRecord with methods to assist in generating Restful content for Web Services.
A simple Decorator for Rails
A readable and simple view helper for Rails 3
A toolkit for decorating GraphQL field objects using ActiveDecorator.
Python style decorators for Ruby, some common decorators like private_method are provided out of the box. Decorators that come with the decorate library: * Decorate::PrivateMethod * Decorate::ProtectedMethod * Decorate::PublicMethod * Decorate::ModuleMethod * Decorate::Memoize Helpers to create your own decorators: * Decorate::AroundDecorator * Decorate::BeforeDecorator
A simple gem to give sitemesh-like functionality in a rack app using decorators.
Provides a way to dynamically override methods without losing original behavior
Use the threadlock method in your class definition to automatically run instance methods inside of an instance-wide re-entrant lock (Monitor). All locked methods in an instance are protected by a single lock, unless a specific lock is specified. You can protect all or some of your methods from being run concurrently. In Ruby>=2.1, threadlock can also be used as a syntactic decorator. Enjoy.
FatTable is a gem that treats tables as a data type. It provides methods for constructing tables from a variety of sources, building them row-by-row, extracting rows, columns, and cells, and performing aggregate operations on columns. It also provides as set of SQL-esque methods for manipulating table objects: select for filtering by columns or for creating new columns, where for filtering by rows, order_by for sorting rows, distinct for eliminating duplicate rows, group_by for aggregating multiple rows into single rows and applying column aggregate methods to ungrouped columns, a collection of join methods for combining tables, and more. Furthermore, FatTable provides methods for formatting tables and producing output that targets various output media: text, ANSI terminals, ruby data structures, LaTeX tables, Emacs org-mode tables, and more. The formatting methods can specify cell formatting in a way that is uniform across all the output methods and can also decorate the output with any number of footers, including group footers. FatTable applies formatting directives to the extent they makes sense for the output medium and treats other formatting directives as no-ops. FatTable can be used to perform operations on data that are naturally best conceived of as tables, which in my experience is quite often. It can also serve as a foundation for providing reporting functions where flexibility about the output medium can be quite useful. Finally FatTable can be used within Emacs org-mode files in code blocks targeting the Ruby language. Org mode tables are presented to a ruby code block as an array of arrays, so FatTable can read them in with its .from_aoa constructor. A FatTable table can output as an array of arrays with its .to_aoa output function and will be rendered in an org-mode buffer as an org-table, ready for processing by other code blocks.
Agnostic Bitmask and BitmaskAttribute. This gem includes Bitmask for standalone usage, and BitmaskAttribute to decorate an existing attribute on any class.
Attribute decorator support for ActiveRecord models.
Tasteful decorators for Ruby. Use it wherever.
Decorate your code like a Peafowl
DecoLite is a little gem that allows you to use the provided DecoLite::Model class to dynamically create Decorator class objects. Use the DecoLite::Model class directly, or inherit from the DecoLite::Model class to create your own unique subclasses with custom functionality. DecoLite::Model includes ActiveModel::Model, so validation can be applied using ActiveModel validation helpers (https://api.rubyonrails.org/v6.1.3/classes/ActiveModel/Validations/HelperMethods.html) you're familiar with; or, you can roll your own - just like any other ActiveModel. DecoLite::Model allows you to consume a Ruby Hash that you supply via the initializer (DecoLite::Model#new) or via the DecoLite::Model#load! method. Any number of Ruby Hashes can be consumed. Your supplied Ruby Hashes are used to create attr_accessor attributes (or "fields") on the model. Each attribute created is then assigned the value from the Hash that was loaded. Again, any number of hashes can be consumed using the DecoLite::Model#load! method.
Pong is Ruby app that runs ping in the background on several hosts at once, and decorates the results, tracking statistics in realtime, refreshing the screen every 5 seconds.
Object-Oriented layer of presentation logic to your Padrino apps.
This gem provides a class to be the base for decorators and a generator to easily create them.
Decorate models with views in a object oriented way
Simple, yet Powerful Rails Decorators
response_for allows you to decorate the respond_to block of actions on subclassed controllers.
Easily define object decorators for JSON APIs using simple declarative syntax
logger with fancy color and/or decoration powered by term-ansicolor.
Decorator to help with the boilerplate of using Rails helpers. It gently wraps your classes to keep your views fresh.
A dead simple decorator for Ruby
before_filter, after_filter, and around_filter for ruby without rails
before_filter, after_filter, and around_filter for ruby without rails
Supports decorator composition and inheritance in ActiveRecord.
An encoding/decoding library with decorator pattern.
A decorator library for ActiveRecord that has features to fit in nicely with the ActiveModel world
Gleborator adds an decorators to models
An opinionated way of organizing model-view code in Ruby on Rails, based on decorators
Gives models a field with daper decorator of the model itself
Sometimes you have an object that is not thread-safe, but you need to make sure each of its methods is thread-safe, because they deal with some resources, like files or databases and you want them to manage those resources sequentially. This small gem will help you achieve exactly that without any re-design of the objects you already have. Just decorate them with SyncEm decorator and that is it.
Decorates URLs according to a format specification
adds caller method as SQL comment
Draper Decoration integrated with SimpleForm
Prevent ActiveDecorator from decorating Jbuilder objects. If not, it generates unexpected keys like `nil?` and/or `class`.
Python like decorators for Ruby
Tattoo is a (very) simple tool to decorate text as links based off of regular expressions and url templates.
A DSL for serializing resources according to HypertextApplicationLanguage. This gem has been deprecated and has been replaced by 'hal_presenter'. See: https://rubygems.org/gems/hal_presenter And: https://github.com/sammyhenningsson/hal_presenter
Decorate your Nokogiri HTML model with CSS information as it would apply in the browser
Decorate a method or wrap a code block to see in logs when they're called.
Provides an easy to use and transparent system for implementing the Decorator Pattern
It generates `span` tags for data values instead of `input`s. This is useful when you need to show read-only value in the resource edit form using all regular input decorations, giving user a clear understanding of its "readonly-ness" and without the ability to pass its value in the form POST request.
Makup for Draper decorator. Localize numbers, dates and times. Provides a way for overriding the way specific types are decorated
Ruby Decorator based framework (aka decorator/presenter objects)
Use Eddie Van Halen's guitar designs to decorate your backgrounds
Decorate all your instance variables just before render