mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
ffc456d0ed
GDBM#{each,each_pair,each_key,each_value}: Return an enumerator if no block is given. * ext/gdbm/gdbm.c (fgdbm_each_value, fgdbm_each_key, fgdbm_each_pair): GDBM#{each,each_pair,each_key,each_value}: Return an enumerator if no block is given. * ext/openssl/ossl_config.c (ossl_config_each): OpenSSL::Config#each: Return an enumerator if no block is given. * ext/readline/readline.c (hist_each): Readline::HISTORY#each: Return an enumerator if no block is given. * ext/sdbm/init.c (fsdbm_each_value, fsdbm_each_key, fsdbm_each_pair): SDBM#{each,each_pair,each_key,each_value}: Return an enumerator if no block is given. * ext/stringio/stringio.c (strio_each_byte, strio_each): StringIO#{each,each_line,each_byte}: Return an enumerator if no block is given. * ext/stringio/stringio.c (Init_stringio): Add #lines and #bytes, which are aliases to #each_line and #each_byte, respectively. * ext/win32ole/win32ole.c (fole_each): WIN32OLE#each: Return an enumerator if no block is given. * ext/zlib/zlib.c (rb_gzreader_each_byte, rb_gzreader_each): Zlib::GzipReader#{each,each_line,each_byte}: Return an enumerator if no block is given. * ext/zlib/zlib.c (Init_zlib): Add Zlib::GzipReader#lines and #bytes, which are aliases to #each_line and #each_byte, respectively. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e |
||
---|---|---|
.. | ||
.cvsignore | ||
depend | ||
extconf.rb | ||
readline.c | ||
README | ||
README.ja |
Extension for GNU Readline Library Example: require "readline" include Readline line = readline("Prompt> ", true) [Readline] <module function> readline(prompt, add_history=nil) Reads one line with line editing. The inputted line is added to the history if add_history is true. <class methods> completion_proc = proc Specifies a Proc object to determine completion behavior. It should take input-string, and return an array of completion candidates. completion_proc Returns the completion Proc object. completion_case_fold = bool Sets whether or not to ignore case on completion. completion_case_fold Returns true if completion ignores case. completion_append_character = char Specifies a character to be appended on completion. Nothing will be appended if an empty string ("") or nil is specified. completion_append_character Returns a string containing a character to be appended on completion. The default is a space (" "). vi_editing_mode Specifies VI editing mode. emacs_editing_mode Specifies Emacs editing mode. <class constants> HISTORY The history buffer. It behaves just like an array.