[ruby-core:85909] [Ruby trunk Bug#14572] Gem::Text methods not available

From: shevegen@...
Date: 2018-03-03 17:33:40 UTC
List: ruby-core #85909
Issue #14572 has been updated by shevegen (Robert A. Heiler).


Yes, I would not have known myself if havenwood would not have
pointed out to me, a few years ago, that levensthein-calculation
exists within the Gem namespace (I make use of it in one gem that
deals with bioinformatics of some sorts; there the levensthein
distance can be useful to assess differences between
nucleotide/aminoacid sequences).

I think this is not a bug but more like a suggestion to enhance
the documentation - perhaps one or two examples could be added.

PS: The Gem namespace has quite a few nifty things; I especially
like Gem::Version.new() to compare version of programs, and
if you ever need the registered licenses, you can use 
Gem::Licenses::IDENTIFIERS - there is a lot of useful stuff 
within Gem; finding them is not always trivial though.

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

* 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>

In This Thread

Prev Next