Sha256: 79a3cbdabead264849ccdf1a30d3061d041103508c44999b1365edf688a16f1e
Contents?: true
Size: 1.09 KB
Versions: 1
Compression:
Stored size: 1.09 KB
Contents
# -*- encoding : utf-8 -*- class Card; module Set; class Abstract # Set: Abstract (CodePointer) # module CodePointer; extend Card::Set def self.source_location; "/Users/ezl5238/dev/decko/gem/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/ezl5238/dev/decko/gem/mod/list/set/abstract/code_pointer.rb ~~
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
card-1.102.0 | tmpsets/set/mod008-list/abstract/code_pointer.rb |