doc: remove trailing spaces

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-09-23 00:13:32 +00:00
parent cfdd8cda26
commit 1a65cef0f0
7 changed files with 21 additions and 21 deletions

View File

@ -230,7 +230,7 @@ with all sufficient information, see the ChangeLog file.
* ARGF.lines * ARGF.lines
* ARGF.readbyte * ARGF.readbyte
New methods. New methods.
* Method#name * Method#name
* Method#owner * Method#owner
@ -638,7 +638,7 @@ with all sufficient information, see the ChangeLog file.
md = Digest::MD5.new("string") md = Digest::MD5.new("string")
# After (works with any version) # After (works with any version)
md = Digest::MD5.new.update("string") md = Digest::MD5.new.update("string")
# Before # Before
hd = Digest::MD5.new("string").hexdigest hd = Digest::MD5.new("string").hexdigest
# After (works with any version) # After (works with any version)

View File

@ -33,7 +33,7 @@
age # エージ(整数) age # エージ(整数)
class # ユーザアクセスクラス(文字列) class # ユーザアクセスクラス(文字列)
comment # コメント(文字列) comment # コメント(文字列)
expire # アカウント有効期限(整数) expire # アカウント有効期限(整数)
end end
詳細はgetpwnam(3)を参照のこと. 詳細はgetpwnam(3)を参照のこと.

View File

@ -9,8 +9,8 @@
== 使い方 == 使い方
クラスに対してextendして使います. クラスに対してextendして使います.
class Foo class Foo
extend Forwardable extend Forwardable
@ -50,7 +50,7 @@
== 使い方 == 使い方
オブジェクトに対して((|extend|))して使います. オブジェクトに対して((|extend|))して使います.
g = Goo.new g = Goo.new
g.extend SingleForwardable g.extend SingleForwardable

View File

@ -112,7 +112,7 @@ XMPメソッド群のコンテキストは, 呼び出す前のコンテキスト
マルチスレッドには対応していません. マルチスレッドには対応していません.
= frame.rb = frame.rb
現在実行中のフレーム情報を取り扱うためのクラスです. 現在実行中のフレーム情報を取り扱うためのクラスです.
* IRB::Frame.top(n = 0) * IRB::Frame.top(n = 0)
上からn番目のコンテキストを取り出します. nは0が最上位になります. 上からn番目のコンテキストを取り出します. nは0が最上位になります.
@ -127,7 +127,7 @@ set_trace_funcを用いてRubyの実行をトレースしています. マルチ
は対応していません. は対応していません.
= completion.rb = completion.rb
irbのcompletion機能を提供するものです. irbのcompletion機能を提供するものです.
== 使い方 == 使い方
@ -144,7 +144,7 @@ irb実行中に (TAB) を押すとコンプレーションします.
トップレベルで(TAB)を押すとすべての構文要素, クラス, メソッドの候補がで トップレベルで(TAB)を押すとすべての構文要素, クラス, メソッドの候補がで
ます. 候補が唯一ならば完全に補完します. ます. 候補が唯一ならば完全に補完します.
irb(main):001:0> in irb(main):001:0> in
in inspect instance_eval in inspect instance_eval
include install_alias_method instance_of? include install_alias_method instance_of?
initialize install_aliases instance_variables initialize install_aliases instance_variables
@ -168,8 +168,8 @@ irb実行中に (TAB) を押すとコンプレーションします.
foo.dup foo.kind_of? foo.to_s foo.dup foo.kind_of? foo.to_s
foo.eql? foo.method foo.type foo.eql? foo.method foo.type
foo.equal? foo.methods foo.untaint foo.equal? foo.methods foo.untaint
foo.extend foo.nil? foo.extend foo.nil?
foo.freeze foo.private_methods foo.freeze foo.private_methods
=end =end

View File

@ -34,7 +34,7 @@ pty 拡張モジュール version 0.3 by A.ito
数がブロックパラメータ付きで呼ばれた場合には,そのブロックの中で 数がブロックパラメータ付きで呼ばれた場合には,そのブロックの中で
のみ例外が発生します.子プロセスをモニターしているスレッドはブロッ のみ例外が発生します.子プロセスをモニターしているスレッドはブロッ
クを抜けるときに終了します. クを抜けるときに終了します.
protect_signal protect_signal
reset_signal reset_signal

View File

@ -47,7 +47,7 @@ OS上のコマンドを実行するにはまず, Shellのメソッドとして
--- Shell.def_system_command(command, path = command) --- Shell.def_system_command(command, path = command)
Shellのメソッドとしてcommandを登録します. Shellのメソッドとしてcommandを登録します.
例) 例)
Shell.def_system_command "ls" Shell.def_system_command "ls"
@ -62,7 +62,7 @@ OS上のコマンドを実行するにはまず, Shellのメソッドとして
--- Shell.alias_command(ali, command, *opts) {...} --- Shell.alias_command(ali, command, *opts) {...}
commandのaliasをします. commandのaliasをします.
例) 例)
Shell.alias_command "lsC", "ls", "-CBF", "--show-control-chars" Shell.alias_command "lsC", "ls", "-CBF", "--show-control-chars"
@ -139,7 +139,7 @@ OS上のコマンドを実行するにはまず, Shellのメソッドとして
--- Shell#test(command, file1, file2) --- Shell#test(command, file1, file2)
--- Shell#[command, file1, file2] --- Shell#[command, file1, file2]
ファイルテスト関数testと同じ. ファイルテスト関数testと同じ.
例) 例)
sh[?e, "foo"] sh[?e, "foo"]
sh[:e, "foo"] sh[:e, "foo"]
@ -185,7 +185,7 @@ OS上のコマンドを実行するにはまず, Shellのメソッドとして
--- Shell#glob(patten) --- Shell#glob(patten)
--- Shell#tee(file) --- Shell#tee(file)
これらは実行すると, それらを内容とするFilterオブジェクトを返します. これらは実行すると, それらを内容とするFilterオブジェクトを返します.
--- Filter#each &block --- Filter#each &block

View File

@ -109,22 +109,22 @@ operator with an <code>@</code> as in <code>+@</code> or <code>!@</code>:
Unary methods accept zero arguments. Unary methods accept zero arguments.
Additionally, methods for element reference and assignment may be defined: Additionally, methods for element reference and assignment may be defined:
<code>[]</code> and <code>[]=</code> respectively. Both can take one or more <code>[]</code> and <code>[]=</code> respectively. Both can take one or more
arguments, and element reference can take none. arguments, and element reference can take none.
class C class C
def [](a, b) def [](a, b)
puts a + b puts a + b
end end
def []=(a, b, c) def []=(a, b, c)
puts a * b + c puts a * b + c
end end
end end
obj = C.new obj = C.new
obj[2, 3] # prints "5" obj[2, 3] # prints "5"
obj[2, 3] = 4 # prints "10" obj[2, 3] = 4 # prints "10"