RubyGems Navigation menu

deco_lite 1.5.12

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.

Gemfile:
= In die Zwischenablage kopieren Kopiert!

installieren:
=

Versionen:

  1. 1.5.13 - February 19, 2024 (25,5 KB)
  2. 1.5.12 - February 08, 2024 (25 KB)
  3. 1.5.11 - January 22, 2024 (25 KB)
  4. 1.5.10 - January 07, 2024 (24,5 KB)
  5. 1.5.9 - December 28, 2023 (24 KB)
Zeige alle Versionen (29 total)

Runtime Abhängigkeiten (4):

activemodel >= 7.0.8, <= 7.12.0
activesupport >= 7.0.8, <= 7.12.0
immutable_struct_ex >= 1.0, < 2.0
mad_flatter >= 3.0, < 4.0

Development Abhängigkeiten (9):

bundler >= 2.2, < 3.0
pry-byebug >= 3.9, < 4.0
rake >= 13.0, < 14.0
reek >= 6.1, < 7.0
rspec >= 3.10, < 4.0
rubocop >= 1.35, < 2.0
rubocop-performance >= 1.14, < 2.0
rubocop-rspec >= 2.12, < 3.0
simplecov >= 0.22.0, < 1.0

Besitzer:

Pushed by:

Autoren:

  • Gene M. Angelo, Jr.

SHA 256-Prüfsumme:

= In die Zwischenablage kopieren Kopiert!

Downloads insgesamt 13.249

Für diese Version 259

Lizenz:

MIT

Erforderliche Ruby-Version: >= 3.0.1, < 4.0

Links: