In Files

  • rbs-2.0.0/lib/rbs/collection/sources.rb
  • rbs-2.0.0/lib/rbs/collection/sources/git.rb
  • rbs-2.0.0/lib/rbs/collection/sources/rubygems.rb
  • rbs-2.0.0/lib/rbs/collection/sources/stdlib.rb

Class/Module Index [+]

Quicksearch

RBS::Collection::Sources

Public Class Methods

from_config_entry(source_entry) click to toggle source
 
               # File rbs-2.0.0/lib/rbs/collection/sources.rb, line 8
def self.from_config_entry(source_entry)
  case source_entry['type']
  when 'git', nil # git source by default
    __skip__ = Git.new(**source_entry.slice('name', 'revision', 'remote', 'repo_dir').transform_keys(&:to_sym))
  when 'stdlib'
    Stdlib.instance
  when 'rubygems'
    Rubygems.instance
  else
    raise
  end
end