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
76 77 78 79 80 81 82 83 |
# File 'lib/rubygems_plugin.rb', line 76 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 |