A set of gems. This only exists to allow expected operations to be used to add gems, and for backwards compatibility. It would be easier to just use a hash.
# File lib/warbler/gems.rb, line 28 def +(other) @specs = nil other.each {|g| self[g] ||= ANY_VERSION } self end
# File lib/warbler/gems.rb, line 34 def -(other) @specs = nil other.each {|g| self.delete(g)} self end
# File lib/warbler/gems.rb, line 23 def <<(gem) @specs = nil self[gem] ||= ANY_VERSION end
Generated with the Darkfish Rdoc Generator 2.