method
new
Ruby latest stable (v2_5_5)
-
0 notes -
Class: SourceIndex
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378
- 1_9_2_180
- 1_9_3_125 (0)
- 1_9_3_392 (0)
- 2_1_10
- 2_2_9
- 2_4_6
- 2_5_5
- 2_6_3
- What's this?
Related methods
- Class methods (5)
- from_gems_in (<= v1_9_3_392)
- from_installed_gems (<= v1_9_3_392)
- installed_spec_directories (<= v1_9_3_392)
- load_specification (<= v1_9_3_392)
- new (<= v1_9_3_392)
- Instance methods (22)
- == (<= v1_9_3_392)
- add_spec (<= v1_9_3_392)
- add_specs (<= v1_9_3_392)
- all_gems (<= v1_9_3_392)
- dump (<= v1_9_3_392)
- each (<= v1_9_3_392)
- find_name (<= v1_9_3_392)
- gem_signature (<= v1_9_3_392)
- index_signature (<= v1_9_3_392)
- latest_specs (<= v1_9_3_392)
- length (<= v1_9_3_392)
- load_gems_in (<= v1_9_3_392)
- outdated (<= v1_9_3_392)
- prerelease_gems (<= v1_9_3_392)
- prerelease_specs (<= v1_9_3_392)
- refresh! (<= v1_9_3_392)
- released_gems (<= v1_9_3_392)
- released_specs (<= v1_9_3_392)
- remove_spec (<= v1_9_3_392)
- search (<= v1_9_3_392)
- size (<= v1_9_3_392)
- specification (<= v1_9_3_392)
= private
= protected
Method deprecated or moved
This method is deprecated or moved on the latest stable version. The last existing version (v1_9_3_392) is shown here.
These similar methods exist in v2_5_5:
- Array#new
- Dir#new
- File::Stat#new
- SystemExit#new
- SystemCallError#new
- NoMethodError#new
- NameError#new
- Exception#new
- Thread#new
- Proc#new
- File#new
- IO#new
- Hash#new
- Class#new
- Class#new
- String#new
- Range#new
- Time#new
- Struct#new
- CGI::Session::MemoryStore#new
- CGI::Session::FileStore#new
- CGI::Session#new
- CGI::Cookie#new
- CGI#new
- Date#new
- Tracer#new
- DEBUGGER__::Context#new
- Delegator#new
- ACL::ACLEntry#new
- ACL::ACLList#new
- ACL#new
- ERB::Compiler::Buffer#new
- ERB::Compiler::Scanner#new
- ERB::Compiler::PercentLine#new
- ERB::Compiler::TrimScanner#new
- ERB::Compiler#new
- ERB#new
- GetoptLong#new
- IPAddr#new
- XMP::StringInputMethod#new
- XMP#new
- Logger::LogDevice#new
- Logger::Formatter#new
- Logger#new
- Vector#new
- Matrix::Scalar#new
- Matrix#new
- OptionParser::Switch#new
- OpenStruct#new
- Pathname#new
- PrettyPrint::Group#new
- PrettyPrint::Text#new
- PrettyPrint::Breakable#new
- PrettyPrint::SingleLine#new
- PrettyPrint::GroupQueue#new
- PrettyPrint#new
- PStore#new
- SOCKSSocket#new
- TCPSocket#new
- Resolv::Hosts#new
- Resolv::IPv4#new
- Resolv::IPv6#new
- Resolv::DNS::Message::MessageDecoder#new
- Resolv::DNS::Message::MessageEncoder#new
- Resolv::DNS::Message#new
- Resolv::DNS::Name#new
- Resolv::DNS::Config#new
- Resolv::DNS::Resource::MX#new
- Resolv::DNS::Resource::HINFO#new
- Resolv::DNS::Resource::TXT#new
- Resolv::DNS::Resource::SOA#new
- Resolv::DNS::Resource::Generic#new
- Resolv::DNS::Resource::DomainName#new
- Resolv::DNS::Resource::MINFO#new
- Resolv::DNS::Resource::IN::SRV#new
- Resolv::DNS::Resource::IN::A#new
- Resolv::DNS::Resource::IN::AAAA#new
- Resolv::DNS::Resource::IN::WKS#new
- Resolv::DNS::Requester::TCP#new
- Resolv::DNS::Requester::ConnectedUDP#new
- Resolv::DNS::Requester::UnconnectedUDP::Sender#new
- Resolv::DNS::Requester::UnconnectedUDP#new
- Resolv::DNS::Requester::Sender#new
- Resolv::DNS::Requester#new
- Resolv::DNS::Label::Str#new
- Resolv::DNS#new
- Resolv#new
- Set#new
- SortedSet#new
- Shell::ProcessController#new
- Shell::AppendFile#new
- Shell::Cat#new
- Shell::Glob#new
- Shell::AppendIO#new
- Shell::SystemCommand#new
- Shell::Filter#new
- Shell::CommandProcessor#new
- Shell::Concat#new
- Shell::Tee#new
- Shell::Echo#new
- Shell#new
- Tempfile#new
- Mutex#new
- ConditionVariable#new
- SizedQueue#new
- Queue#new
- ThreadsWait#new
- WeakRef#new
- StringIO#new
- StringScanner#new
- OLEProperty#new
- WIN32OLE_EVENT#new
- WIN32OLE#new
- WIN32OLE_TYPE#new
- WIN32OLE_METHOD#new
- Benchmark::Tms#new
- Benchmark::Job#new
- Benchmark::Report#new
- DRb::DRbConn#new
- DRb::DRbUnknown#new
- DRb::DRbUnknownError#new
- DRb::ExtServ#new
- DRb::DRbServer::InvokeMethod#new
- DRb::DRbServer#new
- DRb::DRbObject#new
- DRb::DRbMessage#new
- DRb::DRbURIOption#new
- DRb::DRbRemoteError#new
- DRb::DRbSSLSocket::SSLConfig#new
- DRb::DRbSSLSocket#new
- DRb::ExtServManager#new
- DRb::GW#new
- DRb::TimerIdConv::TimerHolder2#new
- DRb::TimerIdConv#new
- DRb::DRbArray#new
- FileUtils::Entry_#new
- IRB::InputMethod#new
- IRB::ReadlineInputMethod#new
- IRB::Frame#new
- IRB::WorkSpace#new
- IRB::Irb#new
- IRB::Locale#new
- IRB::Context#new
- IRB::JobManager#new
- IRB::StdioInputMethod#new
- IRB::FileInputMethod#new
- IRB::History#new
- IRB::Notifier::LeveledNotifier#new
- IRB::Notifier::CompositeNotifier#new
- IRB::Notifier::NoMsgNotifier#new
- MonitorMixin::ConditionVariable#new
- MonitorMixin#new
- Mutex_m#new
- Net::SMTP#new
- Net::HTTPGenericRequest#new
- Net::InternetMessageIO#new
- Net::POP3Command#new
- Net::FTP#new
- Net::WriteAdapter#new
- Net::BufferedIO#new
- Net::POP3#new
- Net::ReadAdapter#new
- Net::HTTPRequest#new
- Net::POPMail#new
- Net::IMAP::QuotedString#new
- Net::IMAP::Literal#new
- Net::IMAP::MessageSet#new
- Net::IMAP::Atom#new
- Net::IMAP::RawData#new
- Net::IMAP::CramMD5Authenticator#new
- Net::IMAP::LoginAuthenticator#new
- Net::IMAP#new
- Net::HTTP#new
- Net::HTTPResponse#new
- Net::HTTPExceptions#new
- URI::MailTo#new
- URI::LDAP#new
- URI::FTP#new
- URI::Generic#new
- OpenURI::Buffer#new
- OpenURI::HTTPError#new
- RDoc::CodeObject#new
- RDoc::Context#new
- RDoc::Alias#new
- RDoc::Attr#new
- RDoc::AnyMethod#new
- RDoc::Constant#new
- RDoc::ClassModule#new
- RDoc::TopLevel#new
- RDoc::Stats#new
- RDoc::Require#new
- REXML::XMLDecl#new
- REXML::Output#new
- REXML::Text#new
- REXML::Comment#new
- REXML::CData#new
- REXML::AttlistDecl#new
- REXML::Parent#new
- REXML::Instruction#new
- REXML::Entity#new
- REXML::ExternalEntity#new
- REXML::UndefinedNamespaceException#new
- REXML::IOSource#new
- REXML::Source#new
- REXML::Attributes#new
- REXML::Elements#new
- REXML::NotationDecl#new
- REXML::XPathParser#new
- REXML::ParseException#new
- REXML::Attribute#new
- REXML::DocType#new
- REXML::Declaration#new
- REXML::SyncEnumerator#new
- REXML::Document#new
- REXML::Element#new
- REXML::ElementDecl#new
- REXML::Child#new
- REXML::Light::Node#new
- REXML::Parsers::TreeParser#new
- REXML::Parsers::SAX2Parser#new
- REXML::Parsers::StreamParser#new
- REXML::Parsers::BaseParser#new
- REXML::Parsers::PullParser#new
- REXML::Parsers::UltraLightParser#new
- REXML::Parsers::PullEvent#new
- REXML::Parsers::LightParser#new
- REXML::Validation::ValidationException#new
- REXML::Validation::RelaxNG#new
- REXML::Validation::Choice#new
- REXML::Validation::State#new
- REXML::Validation::Event#new
- REXML::Validation::Ref#new
- REXML::Validation::OneOrMore#new
- REXML::Validation::Interleave#new
- REXML::Formatters::Pretty#new
- REXML::Formatters::Transitive#new
- REXML::Formatters::Default#new
- REXML::DTD::NotationDecl#new
- REXML::DTD::EntityDecl#new
- REXML::DTD::ElementDecl#new
- Rinda::TupleBag#new
- Rinda::TupleSpace#new
- Rinda::RingServer#new
- Rinda::Tuple#new
- Rinda::DRbObjectTemplate#new
- Rinda::WaitTemplateEntry#new
- Rinda::TupleEntry#new
- Rinda::NotifyTemplateEntry#new
- Rinda::RingProvider#new
- Rinda::RingFinger#new
- Rinda::SimpleRenewer#new
- Rinda::TupleSpaceProxy#new
- RSS::ConversionError#new
- RSS::MissingAttributeError#new
- RSS::Parser#new
- RSS::NotSetError#new
- RSS::NotWellFormedError#new
- RSS::Converter#new
- RSS::XMLStyleSheet#new
- RSS::BaseParser#new
- RSS::NotAvailableValueError#new
- RSS::UnknownTagError#new
- RSS::NotValidXMLParser#new
- RSS::UnknownConversionMethodError#new
- RSS::NotExpectedTagError#new
- RSS::OverlappedPrefixError#new
- RSS::NSError#new
- RSS::Rss::Channel::TextInput#new
- RSS::Rss::Channel::Cloud#new
- RSS::Rss::Channel::SkipDays::Day#new
- RSS::Rss::Channel::Image#new
- RSS::Rss::Channel::Item::Enclosure#new
- RSS::Rss::Channel::Item::Category#new
- RSS::Rss::Channel::Item::Source#new
- RSS::Rss::Channel::Item::Guid#new
- RSS::Rss::Channel::SkipHours::Hour#new
- RSS::Rss#new
- RSS::TooMuchTagError#new
- RSS::MissingTagError#new
- RSS::XMLParserNotFound#new
- RSS::RDF::Channel::Items#new
- RSS::RDF::Channel::Image#new
- RSS::RDF::Channel::Textinput#new
- RSS::RDF::Channel#new
- RSS::RDF::Image#new
- RSS::RDF::Textinput#new
- RSS::RDF::Li#new
- RSS::RDF::Item#new
- RSS::RDF::Bag#new
- RSS::RDF::Seq#new
- RSS::RDF#new
- RSS::Element#new
- RSS::RootElementMixin#new
- RSS::TaxonomyTopicsModel::TaxonomyTopics#new
- RSS::ListenerMixin#new
- RSS::TrackBackModel20::TrackBackPing#new
- RSS::TrackBackModel20::TrackBackAbout#new
- RSS::TrackBackModel10::TrackBackPing#new
- RSS::TrackBackModel10::TrackBackAbout#new
- RSS::TaxonomyTopicModel::TaxonomyTopic#new
- RSS::Maker::RSS20#new
- RSS::Maker::RSS09#new
- RSS::Maker::RSS10#new
- RSS::Maker::RSSBase#new
- RSS::Maker::ItemsBase#new
- RSS::Maker::Base#new
- RSS::ImageFaviconModel::ImageFavicon#new
- RSS::ImageItemModel::ImageItem#new
- RSS::XMLStyleSheetMixin#new
- WEBrick::BasicLog#new
- WEBrick::HTTPProxyServer#new
- WEBrick::HTTPServer::MountTable#new
- WEBrick::HTTPServer#new
- WEBrick::Log#new
- WEBrick::HTTPVersion#new
- WEBrick::CGI::Socket#new
- WEBrick::CGI#new
- WEBrick::HTTPRequest#new
- WEBrick::GenericServer#new
- WEBrick::Cookie#new
- WEBrick::HTTPResponse#new
- WEBrick::HTTPUtils::FormData#new
- WEBrick::HTTPServlet::FileHandler#new
- WEBrick::HTTPServlet::ERBHandler#new
- WEBrick::HTTPServlet::DefaultFileHandler#new
- WEBrick::HTTPServlet::AbstractServlet#new
- WEBrick::HTTPServlet::CGIHandler#new
- WEBrick::HTTPAuth::Htgroup#new
- WEBrick::HTTPAuth::BasicAuth#new
- WEBrick::HTTPAuth::Htdigest#new
- WEBrick::HTTPAuth::DigestAuth#new
- WEBrick::HTTPAuth::Htpasswd#new
- Sync_m#new
- YAML::Store#new
- Zlib::GzipWriter#new
- Zlib::Deflate#new
- Zlib::GzipReader#new
- Zlib::Inflate#new
- Net::SMTP::Response#new
- Rinda::TupleBag::TupleBin#new
- RSS::UnsupportedMakerVersionError#new
- RSS::XML::Element#new
- RSS::Maker::Atom::Entry#new
- RSS::Maker::Atom::Feed#new
- RSS::ITunesChannelModel::ITunesOwner#new
- RSS::ITunesChannelModel::ITunesImage#new
- RSS::ITunesChannelModel::ITunesCategory#new
- RSS::Atom::Entry#new
- RSS::Atom::Feed#new
- RSS::ITunesItemModel::ITunesDuration#new
- Regexp#new
- Module#new
- BigDecimal#new
- CGI::Session::NullStore#new
- BasicObject#new
- CSV#new
- CSV::Row#new
- CSV::Table#new
- DateTime#new
- Encoding::Converter#new
- Enumerator#new
- Enumerator::Generator#new
- Enumerator::Yielder#new
- Fiber#new
- GDBM#new
- Interrupt#new
- JSON::Ext::Generator::State#new
- JSON::Ext::Parser#new
- Net::IMAP::DigestMD5Authenticator#new
- Net::IMAP::PlainAuthenticator#new
- OpenSSL::ASN1::ASN1Data#new
- OpenSSL::ASN1::Constructive#new
- OpenSSL::ASN1::Primitive#new
- OpenSSL::BN#new
- OpenSSL::Cipher#new
- OpenSSL::Config#new
- OpenSSL::Digest#new
- OpenSSL::HMAC#new
- OpenSSL::Netscape::SPKI#new
- OpenSSL::OCSP::BasicResponse#new
- OpenSSL::OCSP::CertificateId#new
- OpenSSL::OCSP::Request#new
- OpenSSL::OCSP::Response#new
- OpenSSL::PKCS12#new
- OpenSSL::PKCS7#new
- OpenSSL::PKCS7::RecipientInfo#new
- OpenSSL::PKCS7::SignerInfo#new
- OpenSSL::PKey::DH#new
- OpenSSL::PKey::DSA#new
- OpenSSL::PKey::EC#new
- OpenSSL::PKey::EC::Group#new
- OpenSSL::PKey::EC::Point#new
- OpenSSL::PKey::PKey#new
- OpenSSL::PKey::RSA#new
- OpenSSL::SSL::SSLContext#new
- OpenSSL::SSL::SSLSocket#new
- OpenSSL::SSL::Session#new
- OpenSSL::X509::Attribute#new
- OpenSSL::X509::CRL#new
- OpenSSL::X509::Certificate#new
- OpenSSL::X509::Extension#new
- OpenSSL::X509::ExtensionFactory#new
- OpenSSL::X509::Name#new
- OpenSSL::X509::Request#new
- OpenSSL::X509::Revoked#new
- OpenSSL::X509::Store#new
- OpenURI::HTTPRedirect#new
- OptionParser#new
- OptionParser#new
- OptionParser::List#new
- OptionParser::ParseError#new
- Prime::EratosthenesGenerator#new
- Prime::EratosthenesSieve#new
- Prime::Generator23#new
- Prime::PseudoPrimeGenerator#new
- Prime::TrialDivision#new
- Prime::TrialDivisionGenerator#new
- RDoc::Markup#new
- RDoc::Options#new
- RDoc::Parser#new
- RDoc::RDoc#new
- Ripper::Filter#new
- Ripper::TokenPattern#new
- Ripper::TokenPattern::MatchData#new
- RubyVM::InstructionSequence#new
- Shell::Void#new
- Signal#new
- Socket#new
- TCPServer#new
- UDPSocket#new
- UNIXServer#new
- UNIXSocket#new
- WEBrick::Utils::TimeoutHandler#new
- WIN32OLE_TYPELIB#new
- WIN32OLE_VARIANT#new
- Digest::Instance#new
- OptionParser::Arguable#new
- ARGF#new
- Addrinfo#new
- IRB::Inspector#new
- IRB::Notifier::AbstractNotifier#new
- Net::IMAP::ResponseError#new
- Net::IMAP::ResponseParser#new
- RSS::Maker::RSS091#new
- RSS::Maker::RSS092#new
- Random#new
- Socket::UDPSource#new
- WIN32OLE_PARAM#new
- OpenSSL::Buffering#new
- CGI::Session::PStore#new
- DBM#new
- Digest::Class#new
- Fiddle::Closure#new
- Fiddle::Closure::BlockCaller#new
- Fiddle::Function#new
- Gem::Command#new
- Gem::CommandManager#new
- Gem::Commands::BuildCommand#new
- Gem::Commands::CertCommand#new
- Gem::Commands::CheckCommand#new
- Gem::Commands::CleanupCommand#new
- Gem::Commands::ContentsCommand#new
- Gem::Commands::DependencyCommand#new
- Gem::Commands::EnvironmentCommand#new
- Gem::Commands::FetchCommand#new
- Gem::Commands::GenerateIndexCommand#new
- Gem::Commands::HelpCommand#new
- Gem::Commands::InstallCommand#new
- Gem::Commands::ListCommand#new
- Gem::Commands::LockCommand#new
- Gem::Commands::OutdatedCommand#new
- Gem::Commands::OwnerCommand#new
- Gem::Commands::PristineCommand#new
- Gem::Commands::PushCommand#new
- Gem::Commands::QueryCommand#new
- Gem::Commands::RdocCommand#new
- Gem::Commands::SearchCommand#new
- Gem::Commands::ServerCommand#new
- Gem::Commands::SetupCommand#new
- Gem::Commands::SourcesCommand#new
- Gem::Commands::SpecificationCommand#new
- Gem::Commands::StaleCommand#new
- Gem::Commands::UninstallCommand#new
- Gem::Commands::UnpackCommand#new
- Gem::Commands::UpdateCommand#new
- Gem::Commands::WhichCommand#new
- Gem::ConfigFile#new
- Gem::ConsoleUI#new
- Gem::Dependency#new
- Gem::DependencyInstaller#new
- Gem::DependencyList#new
- Gem::FakeFetcher#new
- Gem::FilePermissionError#new
- Gem::GemRunner#new
- Gem::Indexer#new
- Gem::Installer#new
- Gem::MockGemUi#new
- Gem::MockGemUi::TermError#new
- Gem::Package::FormatError#new
- Gem::Package::TarHeader#new
- Gem::Package::TarReader#new
- Gem::Package::TarReader::Entry#new
- Gem::Package::TarWriter#new
- Gem::Package::TarWriter::BoundedStream#new
- Gem::Package::TarWriter::RestrictedStream#new
- Gem::PackageTask#new
- Gem::PathSupport#new
- Gem::Platform#new
- Gem::PlatformMismatch#new
- Gem::RemoteFetcher#new
- Gem::RemoteFetcher::FetchError#new
- Gem::Requirement#new
- Gem::Security::Policy#new
- Gem::Security::Signer#new
- Gem::Server#new
- Gem::SilentUI#new
- Gem::SpecFetcher#new
- Gem::Specification#new
- Gem::StreamUI#new
- Gem::StreamUI::SilentDownloadReporter#new
- Gem::StreamUI::SilentProgressReporter#new
- Gem::StreamUI::SimpleProgressReporter#new
- Gem::StreamUI::VerboseDownloadReporter#new
- Gem::StreamUI::VerboseProgressReporter#new
- Gem::SystemExitException#new
- Gem::Uninstaller#new
- Gem::Validator#new
- Gem::Version#new
- Matrix::EigenvalueDecomposition#new
- Matrix::LUPDecomposition#new
- OpenSSL::SSL::SSLServer#new
- Psych::Coder#new
- Psych::Emitter#new
- Psych::Nodes::Alias#new
- Psych::Nodes::Document#new
- Psych::Nodes::Mapping#new
- Psych::Nodes::Node#new
- Psych::Nodes::Scalar#new
- Psych::Nodes::Sequence#new
- Psych::Nodes::Stream#new
- Psych::Parser#new
- Psych::ScalarScanner#new
- Psych::TreeBuilder#new
- Psych::Visitors::DepthFirst#new
- Psych::Visitors::Emitter#new
- Psych::Visitors::ToRuby#new
- Psych::Visitors::YAMLTree#new
- RDoc::CrossReference#new
- RDoc::ERBIO#new
- RDoc::MethodAttr#new
- RDoc::RubygemsHook#new
- RDoc::Task#new
- SDBM#new
- TempIO#new
- Psych::Handler::DumperOptions#new
- Psych::Handlers::DocumentStream#new
- Psych::SyntaxError#new
- Enumerator::Lazy#new
- Fiddle::CStructEntity#new
- Fiddle::CompositeHandler#new
- Fiddle::Handle#new
- Fiddle::Packer#new
- Fiddle::Pointer#new
- Gem::AvailableSet#new
- Gem::Commands::MirrorCommand#new
- Gem::Commands::YankCommand#new
- Gem::DependencyResolutionError#new
- Gem::Doctor#new
- Gem::Ext::Builder#new
- Gem::ImpossibleDependenciesError#new
- Gem::MockGemUi::InputEOFError#new
- Gem::NameTuple#new
- Gem::Package#new
- Gem::Package::DigestIO#new
- Gem::Package::Old#new
- Gem::Package::PathError#new
- Gem::Request#new
- Gem::RequestSet#new
- Gem::RequestSet::GemDependencyAPI#new
- Gem::RequestSet::Lockfile#new
- Gem::RequestSet::Lockfile::ParseError#new
- Gem::Resolver#new
- Gem::Resolver::APISet#new
- Gem::Resolver::APISpecification#new
- Gem::Resolver::ActivationRequest#new
- Gem::Resolver::BestSet#new
- Gem::Resolver::ComposedSet#new
- Gem::Resolver::Conflict#new
- Gem::Resolver::DependencyRequest#new
- Gem::Resolver::GitSet#new
- Gem::Resolver::IndexSet#new
- Gem::Resolver::IndexSpecification#new
- Gem::Resolver::InstallerSet#new
- Gem::Resolver::LockSet#new
- Gem::Resolver::LockSpecification#new
- Gem::Resolver::RequirementList#new
- Gem::Resolver::Set#new
- Gem::Resolver::SpecSpecification#new
- Gem::Resolver::Specification#new
- Gem::Resolver::Stats#new
- Gem::Resolver::VendorSet#new
- Gem::Security::TrustDir#new
- Gem::Source#new
- Gem::Source::Git#new
- Gem::Source::Installed#new
- Gem::Source::Local#new
- Gem::Source::Lock#new
- Gem::Source::SpecificFile#new
- Gem::Source::Vendor#new
- Gem::SourceFetchProblem#new
- Gem::SourceList#new
- Gem::SpecificGemNotFoundException#new
- Gem::StubSpecification#new
- Gem::StubSpecification::StubLine#new
- Gem::TestCase::SpecFetcherSetup#new
- Gem::TestCase::StaticSet#new
- Gem::UnsatisfiableDependencyError#new
- Gem::UriFormatter#new
- Net::HTTPGenericRequest::Chunker#new
- Net::HTTPResponse::Inflater#new
- Profiler__::Wrapper#new
- Psych::ClassLoader#new
- Psych::ClassLoader::Restricted#new
- Psych::DisallowedClass#new
- Psych::Handlers::Recorder#new
- Psych::Visitors::YAMLTree::Registrar#new
- RDoc::Comment#new
- RDoc::Markdown#new
- RDoc::Mixin#new
- RDoc::Servlet#new
- RDoc::Store#new
- RDoc::Store::MissingFileError#new
- RDoc::TomDoc#new
- Resolv::DNS::Resource::LOC#new
- Resolv::LOC::Alt#new
- Resolv::LOC::Coord#new
- Resolv::LOC::Size#new
- Resolv::MDNS#new
- Rinda::RingServer::Renewer#new
- Rinda::TupleSpaceProxy::Port#new
- Syslog::Logger#new
- TracePoint#new
- Psych::Streaming::ClassMethods#new
- Gem::Commands::OpenCommand#new
- Gem::ConflictError#new
- Gem::Package::FileSource#new
- Gem::Package::IOSource#new
- Gem::Request::ConnectionPools#new
- Gem::Request::HTTPPool#new
- URI::RFC2396_Parser#new
- URI::RFC3986_Parser#new
- UncaughtThrowError#new
- WIN32OLE_RECORD#new
- Gem::BasicSpecification#new
- Gem::Installer::FakePackage#new
- Gem::List#new
- Gem::MissingSpecError#new
- Gem::MissingSpecVersionError#new
- Gem::RequestSet::Lockfile::Parser#new
- Gem::RequestSet::Lockfile::Tokenizer#new
- Gem::Resolver::Molinillo::CircularDependencyError#new
- Gem::Resolver::Molinillo::DependencyGraph#new
- Gem::Resolver::Molinillo::DependencyGraph::AddEdgeNoCircular#new
- Gem::Resolver::Molinillo::DependencyGraph::AddVertex#new
- Gem::Resolver::Molinillo::DependencyGraph::DeleteEdge#new
- Gem::Resolver::Molinillo::DependencyGraph::DetachVertexNamed#new
- Gem::Resolver::Molinillo::DependencyGraph::Log#new
- Gem::Resolver::Molinillo::DependencyGraph::SetPayload#new
- Gem::Resolver::Molinillo::DependencyGraph::Tag#new
- Gem::Resolver::Molinillo::DependencyGraph::Vertex#new
- Gem::Resolver::Molinillo::NoSuchDependencyError#new
- Gem::Resolver::Molinillo::Resolver#new
- Gem::Resolver::Molinillo::Resolver::Resolution#new
- Gem::Resolver::Molinillo::VersionConflict#new
- Gem::Resolver::SourceSet#new
- Net::FTP::MLSxEntry#new
- OpenSSL::OCSP::SingleResponse#new
- OpenSSL::X509::StoreContext#new
- SyntaxError#new
- Gem::Commands::SigninCommand#new
- Gem::Commands::SignoutCommand#new
- Ripper#new
- WEBrick::SNIRequest#new
new(specs_or_dirs = [])
public
Constructs a source index instance from the provided specifications, which is a Hash of gem full names and Gem::Specifications.
Show source
# File lib/rubygems/source_index.rb, line 84 def initialize specs_or_dirs = [] @gems = {} @spec_dirs = nil case specs_or_dirs when Hash then specs_or_dirs.each do |full_name, spec| add_spec spec end when Array, String then self.spec_dirs = Array(specs_or_dirs) refresh! else arg = specs_or_dirs.inspect warn "NOTE: SourceIndex.new(#{arg}) is deprecated; From #{caller.first}." end end