1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Detypo and reword a bit.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
knu 2001-07-05 15:47:03 +00:00
parent afb3a0cff1
commit eab46f5fc6
2 changed files with 13 additions and 11 deletions

View file

@ -11,17 +11,18 @@ Example:
<module function> <module function>
readline(prompt, add_hostory=nil) readline(prompt, add_history=nil)
Reads one line wit line edit. the line is added to the Reads one line with line editing. The inputted line is added to the
history also if "add" is true. history if add_history is true.
<class mehods> <class methods>
completion_proc = proc completion_proc = proc
Specifies Proc object to determin completion behavior. It Specifies a Proc object to determine completion behavior. It
shoule take input-string, and return completion candidates. should take input-string, and return an array of completion
candidates.
completion_proc completion_proc
@ -37,12 +38,13 @@ completion_case_fold
completion_append_character = char completion_append_character = char
Specifies a chacatcter to be appended on completion. Specifies a character to be appended on completion.
Nothing will be appended if empty string ("") or nil is specified. Nothing will be appended if an empty string ("") or nil is
specified.
completion_append_character completion_append_character
Returns a string contains a character to be appended on Returns a string containing a character to be appended on
completion. The default is a space (" "). completion. The default is a space (" ").
vi_editing_mode vi_editing_mode

View file

@ -11,10 +11,10 @@ line = readline("Prompt> ", true)
<モジュール関数> <モジュール関数>
readline(prompt, add=nil) readline(prompt, add_history=nil)
一行入力を読み込みます。 一行入力を読み込みます。
addがtrueの場合、ヒストリに読み込んだ文字列を追加します。 add_historyがtrueの場合、ヒストリに読み込んだ文字列を追加します。
<クラスメソッド> <クラスメソッド>