From: svnpenn@...
Date: 2018-03-03T14:35:20+00:00
Subject: [ruby-core:85908] [Ruby trunk Bug#14572] Gem::Text methods not	available

Issue #14572 has been updated by svnpenn (Steven Penny).


correcting myself - looks like it just needs to be invoked like this

require 'rubygems/text'
extend Gem::Text
p levenshtein_distance("asd", "sdf")

----------------------------------------
Bug #14572: Gem::Text methods not available
https://bugs.ruby-lang.org/issues/14572#change-70762

* Author: svnpenn (Steven Penny)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
http://ruby-doc.org/stdlib/libdoc/rubygems/rdoc/Gem/Text.html

none of these work because they are private? see example here of workaround

http://stackoverflow.com/a/46029581



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>