Sha256: 0e84ea1fc04cb1b9b0710e7f61efc9c0fe4c9f0ee2d580219b0a8a7a25fe0064
Contents?: true
Size: 432 Bytes
Versions: 18
Compression:
Stored size: 432 Bytes
Contents
module LearnWeb module AttributePopulatable def self.included(base) base.class_eval do def populate_attributes! data.each do |attribute, value| if !self.respond_to?(attribute) self.class.class_eval do attr_accessor attribute end end self.send("#{attribute}=", value) end end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems