Module: Gemvault::VaultSourceList

Defined in:
lib/rubygems_plugin.rb

Instance Method Summary collapse

Instance Method Details

#<<(obj) ⇒ Object



57
58
59
60
61
62
63
64
# File 'lib/rubygems_plugin.rb', line 57

def <<(obj)
  if obj.is_a?(String) && obj.end_with?(".gemv")
    src = Gem::Source::Vault.new(obj)
    @sources << src unless @sources.include?(src)
    return src
  end
  super
end