Skip to content

Commit 1d5b161

Browse files
Merge pull request #11 from rurema/update-generated-documents
Update generated documents
2 parents 7de85ba + 3e5a453 commit 1d5b161

File tree

146 files changed

+406
-366
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+406
-366
lines changed

db/db-3.0/method/-option-parser/i.default_argv.optparse

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
names=default_argv
22
visibility=public
33
kind=defined
4-
source_location=refm/api/src/optparse/OptionParser:1133
4+
source_location=refm/api/src/optparse/OptionParser:1135
55

66
--- default_argv -> [String]
77

db/db-3.0/method/-option-parser/i.default_argv=3d.optparse

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
names=default_argv=
22
visibility=public
33
kind=defined
4-
source_location=refm/api/src/optparse/OptionParser:1148
4+
source_location=refm/api/src/optparse/OptionParser:1150
55

66
--- default_argv=(argv)
77

db/db-3.0/method/-option-parser/i.environment.optparse

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
names=environment
22
visibility=public
33
kind=defined
4-
source_location=refm/api/src/optparse/OptionParser:1109
4+
source_location=refm/api/src/optparse/OptionParser:1111
55

66
--- environment(env) -> [String]
77

db/db-3.0/method/-option-parser/i.getopts.optparse

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
names=getopts
22
visibility=public
33
kind=defined
4-
source_location=refm/api/src/optparse/OptionParser:1174
4+
source_location=refm/api/src/optparse/OptionParser:1176
55

66
--- getopts(argv, *opts) -> Hash
77
--- getopts(*opts) -> Hash

db/db-3.0/method/-option-parser/i.load.optparse

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
names=load
22
visibility=public
33
kind=defined
4-
source_location=refm/api/src/optparse/OptionParser:1083
4+
source_location=refm/api/src/optparse/OptionParser:1085
55

66
--- load(filename = nil) -> bool
77

db/db-3.0/method/-option-parser/i.on.optparse

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,24 @@ source_location=refm/api/src/optparse/OptionParser:561
2828
//}
2929
となります。コマンドラインにオプションが存在した場合 true を引数と
3030
してブロックを評価します。
31-
ショートオプションが引数をとる場合は、
31+
ショートオプションが引数をとる場合は、以下のようになります。
3232
//emlist{
33-
on("-x MANDATORY"){|val| ...}
33+
on("-x MANDATORY"){|val| ...} # " MANDATORY" の部分は任意の文字列で構いません
34+
on("-xSTRING"){|val| ...} # スペース無しで任意の文字列を入れても同様
3435
//}
35-
となります。"MANDATORY" の部分は任意の文字列で構いません。
3636
オプションの引数が必須でない場合は [ ] をつけて、
3737
//emlist{
3838
on("-x [OPTIONAL]"){|val| ...}
3939
//}
4040
となります。
4141

42-
@param long ロングオプションを表す文字列を指定します。ショートオプションの時と同様に
42+
@param long ロングオプションを表す文字列を指定します。ショートオプションの時とほぼ同様に
4343
//emlist{
44-
on("--long"){|boolean| ...}
45-
on("--long MANDATORY"){|val| ...}
46-
on("--long [OPTIONAL]"){|val| ...}
44+
on("--long"){|boolean| ...} # オプションが引数をとらない場合。boolean には true が渡されます。
45+
on("--long MANDATORY"){|val| ...} # オプションが引数をとる場合。" MANDATORY" の部分は任意の文字列で構いません
46+
on("--long=MANDATORY"){|val| ...} # 空白のかわりに = を使って指定することもできます
47+
# on("--longSTRING"){|val| ...} # ロングオプションでは、ショートオプションの場合と違って空白が必ず必要です。このようにすると --longSTRING という名前の引数をとらないオプションになります。
48+
on("--long [OPTIONAL]"){|val| ...} # 引数が必須でないオプション
4749
//}
4850
と指定できます。
4951

db/db-3.0/method/-option-parser/i.on_head.optparse

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
names=on_head
22
visibility=public
33
kind=defined
4-
source_location=refm/api/src/optparse/OptionParser:741
4+
source_location=refm/api/src/optparse/OptionParser:743
55

66
--- on_head(*arg, &block) -> self
77

db/db-3.0/method/-option-parser/i.on_tail.optparse

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
names=on_tail
22
visibility=public
33
kind=defined
4-
source_location=refm/api/src/optparse/OptionParser:768
4+
source_location=refm/api/src/optparse/OptionParser:770
55

66
--- on_tail(*arg, &block) -> self
77

db/db-3.0/method/-option-parser/i.order.optparse

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
names=order
22
visibility=public
33
kind=defined
4-
source_location=refm/api/src/optparse/OptionParser:813
4+
source_location=refm/api/src/optparse/OptionParser:815
55

66
--- order(argv, into: nil) -> [String]
77
--- order(argv, into: nil){|s| ...} -> [String]

db/db-3.0/method/-option-parser/i.order=21.optparse

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
names=order!
22
visibility=public
33
kind=defined
4-
source_location=refm/api/src/optparse/OptionParser:865
4+
source_location=refm/api/src/optparse/OptionParser:867
55

66
--- order!(argv = self.default_argv, into: nil) -> [String]
77
--- order!(argv = self.default_argv, into: nil) {|s| ...} -> [String]

0 commit comments

Comments
 (0)