Sha256: d44703070a3c3adafb8ec642c541b6f03fd9ee05751fa6d2dd911faed5a408c3
Contents?: true
Size: 524 Bytes
Versions: 1
Compression:
Stored size: 524 Bytes
Contents
require 'ascii_binder_gabriel_rh/site_info' module AsciiBinderGabrielRH class SiteMap def initialize(distro_map) @site_map = {} distro_map.distros.each do |distro| unless @site_map.has_key?(distro.site.id) @site_map[distro.site.id] = AsciiBinderGabrielRH::SiteInfo.new(distro) else @site_map[distro.site.id].add_distro(distro) end end end def sites return @site_map.values end def ids return @site_map.keys end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ascii_binder_gabriel_rh-0.0.1 | lib/ascii_binder_gabriel_rh/site_map.rb |