Sha256: 7366eefcf905682384a646c75983bacd007954cf6f934b9d3d1d465f0330d0cf
Contents?: true
Size: 387 Bytes
Versions: 4
Compression:
Stored size: 387 Bytes
Contents
# Effect is container of all the changes that a model suffers module OhMyLog module Log class Effect attr_reader :receiver attr_reader :changes def initialize(receiver) @receiver = receiver @changes = receiver.previous_changes end def to_s "#{@receiver.class.to_s}[#{@receiver.id}] => #{@changes}" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
oh_my_log-1.0.5 | lib/oh_my_log/effect.rb |
oh_my_log-1.0.4 | lib/oh_my_log/effect.rb |
oh_my_log-1.0.3 | lib/oh_my_log/effect.rb |
oh_my_log-1.0.2 | lib/oh_my_log/effect.rb |