summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-23 00:13:32 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-23 00:13:32 +0000
commit1a65cef0f03fc9250cd5f2de3ce1ac4f79cfdb7a (patch)
tree97f5ae3620fde9905edd5ffd59e3294a9132d9b1 /doc
parentcfdd8cda26aaf848a287396b01c2581ccc8b0178 (diff)
doc: remove trailing spaces
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'doc')
-rw-r--r--doc/NEWS-1.8.74
-rw-r--r--doc/etc.rd.ja2
-rw-r--r--doc/forwardable.rd.ja6
-rw-r--r--doc/irb/irb-tools.rd.ja10
-rw-r--r--doc/pty/README.ja2
-rw-r--r--doc/shell.rd.ja8
-rw-r--r--doc/syntax/methods.rdoc10
7 files changed, 21 insertions, 21 deletions
diff --git a/doc/NEWS-1.8.7 b/doc/NEWS-1.8.7
index 51fb5f1c6a..38571fe103 100644
--- a/doc/NEWS-1.8.7
+++ b/doc/NEWS-1.8.7
@@ -230,7 +230,7 @@ with all sufficient information, see the ChangeLog file.
* ARGF.lines
* ARGF.readbyte
- New methods.
+ New methods.
* Method#name
* Method#owner
@@ -638,7 +638,7 @@ with all sufficient information, see the ChangeLog file.
md = Digest::MD5.new("string")
# After (works with any version)
md = Digest::MD5.new.update("string")
-
+
# Before
hd = Digest::MD5.new("string").hexdigest
# After (works with any version)
diff --git a/doc/etc.rd.ja b/doc/etc.rd.ja
index b36e05c994..877356bb6e 100644
--- a/doc/etc.rd.ja
+++ b/doc/etc.rd.ja
@@ -33,7 +33,7 @@
age # エージ(整数)
class # ユーザアクセスクラス(文字列)
comment # コメント(文字列)
- expire # アカウント有効期限(整数)
+ expire # アカウント有効期限(整数)
end
詳細はgetpwnam(3)を参照のこと.
diff --git a/doc/forwardable.rd.ja b/doc/forwardable.rd.ja
index 6a5ff2e236..171724b2e5 100644
--- a/doc/forwardable.rd.ja
+++ b/doc/forwardable.rd.ja
@@ -9,8 +9,8 @@
== 使い方
-クラスに対してextendして使います.
-
+クラスに対してextendして使います.
+
class Foo
extend Forwardable
@@ -50,7 +50,7 @@
== 使い方
-オブジェクトに対して((|extend|))して使います.
+オブジェクトに対して((|extend|))して使います.
g = Goo.new
g.extend SingleForwardable
diff --git a/doc/irb/irb-tools.rd.ja b/doc/irb/irb-tools.rd.ja
index 3c95faeb8a..b997f0edea 100644
--- a/doc/irb/irb-tools.rd.ja
+++ b/doc/irb/irb-tools.rd.ja
@@ -112,7 +112,7 @@ XMPメソッド群のコンテキストは, 呼び出す前のコンテキスト
マルチスレッドには対応していません.
= frame.rb
-現在実行中のフレーム情報を取り扱うためのクラスです.
+現在実行中のフレーム情報を取り扱うためのクラスです.
* IRB::Frame.top(n = 0)
上からn番目のコンテキストを取り出します. nは0が最上位になります.
@@ -127,7 +127,7 @@ set_trace_funcを用いてRubyの実行をトレースしています. マルチ
は対応していません.
= completion.rb
-irbのcompletion機能を提供するものです.
+irbのcompletion機能を提供するものです.
== 使い方
@@ -144,7 +144,7 @@ irb実行中に (TAB) を押すとコンプレーションします.
トップレベルで(TAB)を押すとすべての構文要素, クラス, メソッドの候補がで
ます. 候補が唯一ならば完全に補完します.
- irb(main):001:0> in
+ irb(main):001:0> in
in inspect instance_eval
include install_alias_method instance_of?
initialize install_aliases instance_variables
@@ -168,8 +168,8 @@ irb実行中に (TAB) を押すとコンプレーションします.
foo.dup foo.kind_of? foo.to_s
foo.eql? foo.method foo.type
foo.equal? foo.methods foo.untaint
- foo.extend foo.nil?
- foo.freeze foo.private_methods
+ foo.extend foo.nil?
+ foo.freeze foo.private_methods
=end
diff --git a/doc/pty/README.ja b/doc/pty/README.ja
index 9b9d306bf7..2d83ffa033 100644
--- a/doc/pty/README.ja
+++ b/doc/pty/README.ja
@@ -34,7 +34,7 @@ pty 拡張モジュール version 0.3 by A.ito
数がブロックパラメータ付きで呼ばれた場合には,そのブロックの中で
のみ例外が発生します.子プロセスをモニターしているスレッドはブロッ
クを抜けるときに終了します.
-
+
protect_signal
reset_signal
diff --git a/doc/shell.rd.ja b/doc/shell.rd.ja
index 053b11fb99..a9507fe92a 100644
--- a/doc/shell.rd.ja
+++ b/doc/shell.rd.ja
@@ -47,7 +47,7 @@ OS上のコマンドを実行するにはまず, Shellのメソッドとして
--- Shell.def_system_command(command, path = command)
- Shellのメソッドとしてcommandを登録します.
+ Shellのメソッドとしてcommandを登録します.
例)
Shell.def_system_command "ls"
@@ -62,7 +62,7 @@ OS上のコマンドを実行するにはまず, Shellのメソッドとして
--- Shell.alias_command(ali, command, *opts) {...}
- commandのaliasをします.
+ commandのaliasをします.
例)
Shell.alias_command "lsC", "ls", "-CBF", "--show-control-chars"
@@ -139,7 +139,7 @@ OS上のコマンドを実行するにはまず, Shellのメソッドとして
--- Shell#test(command, file1, file2)
--- Shell#[command, file1, file2]
- ファイルテスト関数testと同じ.
+ ファイルテスト関数testと同じ.
例)
sh[?e, "foo"]
sh[:e, "foo"]
@@ -185,7 +185,7 @@ OS上のコマンドを実行するにはまず, Shellのメソッドとして
--- Shell#glob(patten)
--- Shell#tee(file)
- これらは実行すると, それらを内容とするFilterオブジェクトを返します.
+ これらは実行すると, それらを内容とするFilterオブジェクトを返します.
--- Filter#each &block
diff --git a/doc/syntax/methods.rdoc b/doc/syntax/methods.rdoc
index 58179549f3..2c01810b4c 100644
--- a/doc/syntax/methods.rdoc
+++ b/doc/syntax/methods.rdoc
@@ -109,22 +109,22 @@ operator with an <code>@</code> as in <code>+@</code> or <code>!@</code>:
Unary methods accept zero arguments.
-Additionally, methods for element reference and assignment may be defined:
-<code>[]</code> and <code>[]=</code> respectively. Both can take one or more
+Additionally, methods for element reference and assignment may be defined:
+<code>[]</code> and <code>[]=</code> respectively. Both can take one or more
arguments, and element reference can take none.
class C
def [](a, b)
puts a + b
end
-
+
def []=(a, b, c)
puts a * b + c
end
end
-
+
obj = C.new
-
+
obj[2, 3] # prints "5"
obj[2, 3] = 4 # prints "10"