Sha256: 0acc74089d04faa9b5a473dac184a4dcb9a22cdbaed4c2d5c8fdab13c86adfc9
Contents?: true
Size: 447 Bytes
Versions: 2
Compression:
Stored size: 447 Bytes
Contents
module Aka class Links def initialize(links) @links = links.dup end def add(link) link = Configuration::Link.parse(link) @links << link unless @links.include?(link) end def delete(link) link = Configuration::Link.parse(link) @links.delete(link) end def any? @links.any? end def all @links.dup end def each(&blk) @links.each(&blk) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hsume2-aka-0.2.1 | lib/aka/links.rb |
hsume2-aka-0.2.0 | lib/aka/links.rb |