In case we’re building docs in a background process, this method waits for that process to exit (or if it’s already been reaped, or never happened, swallows the Errno::ECHILD error).
Convert internal ID of token symbol to the string.
Mounts a proc at a path that accepts a request and response.
Instead of mounting this servlet with WEBrick::HTTPServer#mount
use WEBrick::HTTPServer#mount_proc
:
server.mount_proc '/' do |req, res| res.body = 'it worked!' res.status = 200 end
Coerce an object to a string, providing our own representation if to_s is not defined for the object.
Nonsymmetric reduction to Hessenberg form.
Converts this AvailableSet
into a RequestSet that can be used to install gems.
If development
is :none then no development dependencies are installed. Other options are :shallow for only direct development dependencies of the gems in this set or :all for all development dependencies.
Is is ok to remove a gemspec from the dependency list?
If removing the gemspec creates breaks a currently ok dependency, then it is NOT ok to remove the gemspec.
Given a name and requirement, downloads this gem into cache and returns the filename. Returns nil if the gem cannot be located.
Add spec
to +@fetcher+ serving the data in the file path
. repo
indicates which repo to make spec
appear to be in.
Given a name
in a name_with_underscores or a name-with-dashes format, returns the CamelCase version of name
.
If the name
is already CamelCased, nothing happens.
Examples:
require 'rss/utils' RSS::Utils.to_class_name("sample_name") # => "SampleName" RSS::Utils.to_class_name("with-dashes") # => "WithDashes" RSS::Utils.to_class_name("CamelCase") # => "CamelCase"