Sha256: 6a90ac75291239126c510cb4eea31a502b8d48e77dc38f33ab60a363c7e37b25
Contents?: true
Size: 861 Bytes
Versions: 10
Compression:
Stored size: 861 Bytes
Contents
# -*- encoding : utf-8 -*- class Card; module Set; class All # Set: All cards (Observer) # module Observer; extend Card::Set def self.source_location; "/Users/ethan/dev/decko/gem/card/mod/core/set/all/observer.rb"; end %i[create update delete].each do |action| event "observer_#{action}".to_sym, :integrate, on: action do execute_card_events on: action end end event :cache_delete_card_events, :store, on: :delete do @card_event_cache = event_cards :on_delete end def execute_card_events args setting = "on_#{args[:on]}".to_sym event_cards(setting).each do |event_card| event_card.deliver self end end def event_cards setting @card_event_cache || ((event_rule = rule_card(setting)) && event_rule.extended_item_cards) || [] end end;end;end;end; # ~~ generated from /Users/ethan/dev/decko/gem/card/mod/core/set/all/observer.rb ~~
Version data entries
10 entries across 10 versions & 1 rubygems