Categories: None [Edit]
deco_lite
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.
Total
Ranking: 61,040 of 183,501
Downloads: 15,494
Daily
Ranking: 11,363 of 183,494
Downloads: 31
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
179,680 | 628 | rcmdr |
Depends on
Rank | Downloads | Name |
---|---|---|
7 | 1,005,549,835 | activesupport |
33 | 633,535,286 | activemodel |
85,988 | 9,250 | immutable_struct_ex |
105,748 | 6,499 | mad_flatter |
Owners
# | Gravatar | Handle |
---|---|---|
1 | gangelo |