mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00

Although 'did_you_mean' is always available in upstream Ruby, it might not be available when speed, memory, disk or network bandwidth is a concern. This is typically the case for production environment, where 'did_you_mean' is of limited usage. Also it might not be available optionally when Ruby is delivered via packaging systems. E.g. Linux distributions.
6 lines
116 B
Ruby
6 lines
116 B
Ruby
require 'rubygems.rb' if defined?(Gem)
|
|
|
|
begin
|
|
require 'did_you_mean'
|
|
rescue LoadError
|
|
end if defined?(DidYouMean)
|