Module: Gemvault::VaultSourceList
- Defined in:
- lib/rubygems_plugin.rb
Overview
Routes .gemv source strings to Gem::Source::Vault.
Instance Method Summary collapse
Instance Method Details
#<<(obj) ⇒ Object
67 68 69 70 71 72 73 74 |
# File 'lib/rubygems_plugin.rb', line 67 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 |