Bug #6107 ยป 0001-Fix-documentation-for-Abbrev-abbrev.patch
lib/abbrev.rb | ||
---|---|---|
# require 'abbrev'
|
||
# require 'pp'
|
||
#
|
||
# pp Abbrev::abbrev(['ruby', 'rules']).sort
|
||
# pp Abbrev::abbrev(['ruby', 'rules'])
|
||
#
|
||
# <i>Generates:</i>
|
||
# { "rub" => "ruby",
|
||
# "rule" => "rules",
|
||
# "rul" => "rules",
|
||
# "ruby" => "ruby",
|
||
# "rules" => "rules" }
|
||
#
|
||
# [["rub", "ruby"],
|
||
# ["ruby", "ruby"],
|
||
# ["rul", "rules"],
|
||
# ["rule", "rules"],
|
||
# ["rules", "rules"]]
|
||
#
|
||
# Also adds an +abbrev+ method to class +Array+.
|
||
# It also adds an +abbrev+ method to class +Array+.
|
||
module Abbrev
|
||