Sha256: 0df8f6ee338dc558b348769511e84abae97f7684d005cd6708e0d30a6667fa7a
Contents?: true
Size: 1.1 KB
Versions: 8
Compression:
Stored size: 1.1 KB
Contents
# -*- encoding : utf-8 -*- class Card; module Set; class Abstract # Set: Abstract (CodePointer) # module CodePointer; extend Card::Set def self.source_location; "/Users/ethan/dev/decko/gem/card-mod-list/set/abstract/code_pointer.rb"; end include_set Abstract::Pointer abstract_basket :item_codenames # simplify api # Self::MyCodePointerSet.add_item :my_item_codename # instead of # Self::MyCodePointerSet.add_to_basket :item_codenames, :my_item_codename module ClassMethods def add_item codename valid_codename codename do add_to_basket :item_codenames, codename end end def unshift_item codename valid_codename codename do unshift_basket :item_codenames, codename end end def valid_codename codename if Card::Codename.exist? codename yield else Rails.logger.info "unknown codename '#{codename}' added to code pointer" end end end def content item_codenames.map do |codename| Card.fetch_name codename end.compact.to_pointer_content end end;end;end;end; # ~~ generated from /Users/ethan/dev/decko/gem/card-mod-list/set/abstract/code_pointer.rb ~~
Version data entries
8 entries across 8 versions & 1 rubygems