Sha256: 23853cf55d2f309c9987924475170b2861ba96d4cf887b1673bd3f11a782b034
Contents?: true
Size: 401 Bytes
Versions: 30
Compression:
Stored size: 401 Bytes
Contents
module JsDuck module Doc # Helper for building at-tags lookup table. class Map # Builds map of at-tags for quick lookup def self.build(docs) map = {} docs.each do |tag| if map[tag[:tagname]] map[tag[:tagname]] << tag else map[tag[:tagname]] = [tag] end end map end end end end
Version data entries
30 entries across 30 versions & 3 rubygems