Граф коммитов

12 Коммитов

Автор SHA1 Сообщение Дата
zzak 7ceb188443 * lib/abbrev.rb: Add words parameter to Abbrev::abbrev
Patch by Devin Weaver [Github documenting-ruby/ruby/#7]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-21 17:35:32 +00:00
knu 3c4633a3a1 Stop using a regexp that causes a false warning.
* lib/abbrev.rb (Abbrev#abbrev): Stop using a regexp that causes a
  false warning. [Bug #7471]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-30 04:01:07 +00:00
knu 4078d42b72 Fix a line matching problem in Abbrev.abbrev(words, "prefix").
* lib/abbrev.rb (Abbrev#abbrev): A fixed string prefix pattern
  should only match the beginning of each word, not the beginning
  of every line in it.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-30 03:56:28 +00:00
eregon 5bab434018 * lib/abbrev.rb: fix r37113. Correct examples, fix style
and show explicit dependency (require 'abbrev').

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-16 23:14:38 +00:00
zzak 511703c770 * lib/abbrev.rb: Documentation examples for Abbrev.
[ruby-dev:47442] [Bug #6985]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-10-06 20:03:26 +00:00
drbrain 79f28211fd * lib/abbrev.rb: Fixed typo in abbrev pattern documentation. Based on
patch by Mark Rushakoff.  [ruby-trunk - #6346]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-07 23:55:53 +00:00
drbrain d8164e5724 * lib/abbrev.rb: Clarified that Abbrev.abbrev returns a Hash instead
of an Array.  Patch by Andrei Bocan.  [ruby-trunk - Bug #6107]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-10 20:15:05 +00:00
kazu f2c84d2da0 lib/abbrev.rb (Array#abbrev): add missing '"' in documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-15 15:16:20 +00:00
drbrain 7bbf2f3085 * lib: Convert tabs to spaces for ruby files per
http://redmine.ruby-lang.org/projects/ruby/wiki/DeveloperHowto#coding-style
	  Patch by Steve Klabnik [Ruby 1.9 - Bug #4730]
	  Patch by Jason Dew [Ruby 1.9 - Feature #4718]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-18 21:19:18 +00:00
drbrain 8638efb23d * lib/abbrev.rb: Hide copyright and revision information from RDoc.
Inspired by patch from David Copeland, bug #4703.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-16 18:51:56 +00:00
dave e10e26d329 RDoc abbrev
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-20 05:27:23 +00:00
knu 3982f82b03 * lib/generator.rb: A new library which converts an internal
iterator to an external iterator.

* lib/abbrev.rb: A new library which creates an abbreviation table
  from a list.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-14 20:14:20 +00:00