ライブラリ
- English (33)
- ビルトイン (76)
- abbrev (11)
-
cgi
/ html (22) -
net
/ http (22) -
net
/ smtp (28) -
net
/ telnet (4) - optparse (88)
-
rdoc
/ markup (11) - readline (44)
- shell (18)
- shellwords (77)
- stringio (11)
- uri (11)
クラス
- Exception (7)
- Integer (33)
-
Net
:: SMTP (28) -
Net
:: Telnet (4) - OptionParser (66)
-
RDoc
:: Markup (11) - Shell (18)
- String (22)
- StringIO (11)
- Struct (14)
-
URI
:: Generic (11)
モジュール
- Abbrev (11)
-
CGI
:: HtmlExtension (22) - Kernel (33)
-
Net
:: HTTPHeader (22) -
OptionParser
:: Arguable (22) - Readline (44)
- Shellwords (77)
キーワード
-
$ INPUT _ RECORD _ SEPARATOR (11) -
$ OUTPUT _ RECORD _ SEPARATOR (11) -
$ RS (11) -
NEWS for Ruby 3
. 0 . 0 (4) - abbrev (11)
-
add
_ word _ pair (11) -
basic
_ auth (11) -
basic
_ word _ break _ characters (11) -
basic
_ word _ break _ characters= (11) - chr (33)
-
completer
_ word _ break _ characters (11) -
completer
_ word _ break _ characters= (11) -
default
_ record _ separator (6) -
default
_ record _ separator= (6) - escape (11)
- join (11)
- login (4)
- new (14)
- order (44)
- order! (44)
- password (11)
-
password
_ field (22) -
proxy
_ basic _ auth (11) -
record
_ separator (6) -
ruby 1
. 9 feature (11) - shellescape (11)
- shelljoin (11)
- shellsplit (11)
- shellwords (22)
- split (11)
- start (28)
- ungetc (11)
検索結果
先頭5件
-
String
# ord -> Integer (39113.0) -
文字列の最初の文字の文字コードを整数で返します。
...の文字コードを整数で返します。
self が空文字列のときは例外を発生します。
@return 文字コードを表す整数
@raise ArgumentError self の長さが 0 のとき発生
//emlist[例][ruby]{
p "a".ord # => 97
//}
@see Integer#chr, String#chr... -
String
# chr -> String (21131.0) -
self の最初の文字だけを含む文字列を返します。
...uby]{
a = "abcde"
a.chr #=> "a"
//}
Ruby 1.9 で IO#getc の戻り値が Integer から String を返すように変更になりました。
Ruby 1.8 以前と1.9以降の互換性を保つために String#chr が存在します。
例:
# ruby 1.8 系では STDIN.getc が 116 を返すため......Integer#chr が呼び出される
$ echo test | ruby -e "p STDIN.getc.chr" # => "t"
# ruby 1.9 系以降では STDIN.getc が "t" を返すため String#chr が呼び出される
$ echo test | ruby -e "p STDIN.getc.chr" # => "t"
@see String#ord, Integer#chr... -
Integer
# ord -> Integer (18137.0) -
自身を返します。
...自身を返します。
//emlist[][ruby]{
10.ord #=> 10
# String#ord
?a.ord #=> 97
//}
@see String#ord... -
Readline
. basic _ word _ break _ characters=(string) (6223.0) -
ユーザの入力の補完を行う際、 単語の区切りを示す複数の文字で構成される文字列 string を指定します。
...す複数の文字で構成される文字列 string を指定します。
GNU Readline のデフォルト値は、Bash の補完処理で使用している文字列
" \t\n\"\\'`@$><=;|&{(" (スペースを含む) になっています。
@param string 文字列を指定します。
@raise NotImp......lementedError サポートしていない環境で発生します。
@see Readline.basic_word_break_characters... -
Readline
. completer _ word _ break _ characters=(string) (6223.0) -
ユーザの入力の補完を行う際、 単語の区切りを示す複数の文字で構成される文字列 string を指定します。 Readline.basic_word_break_characters= との違いは、 GNU Readline の rl_complete_internal 関数で使用されることです。
...文字列 string を指定します。
Readline.basic_word_break_characters= との違いは、
GNU Readline の rl_complete_internal 関数で使用されることです。
GNU Readline のデフォルトの値は、
Readline.basic_word_break_characters と同じです。
@param string 文字列......を指定します。
@raise NotImplementedError サポートしていない環境で発生します。
@see Readline.completer_word_break_characters... -
OptionParser
# order(*args) -> [String] (6204.0) -
与えられた argv を順番にパースします。 オプションではないコマンドの引数(下の例で言うと somefile)に出会うと、パースを中断します。 argv からオプションを取り除いたものを返します。
...サブク
ラスになります。
//emlist[opt.rb][ruby]{
require 'optparse'
opt = OptionParser.new
opt.on('-a [VAL]') {|v| p :a }
opt.on('-b') {|v| p :b }
opt.order(ARGV)
p ARGV
//}
↓
$ ruby opt.rb -a foo somefile -b
:a
["-a", "foo", "somefile", "-b"]... -
OptionParser
# order(*args) {|s| . . . } -> [String] (6204.0) -
与えられた argv を順番にパースします。 オプションではないコマンドの引数(下の例で言うと somefile)に出会うと、パースを中断します。 argv からオプションを取り除いたものを返します。
...サブク
ラスになります。
//emlist[opt.rb][ruby]{
require 'optparse'
opt = OptionParser.new
opt.on('-a [VAL]') {|v| p :a }
opt.on('-b') {|v| p :b }
opt.order(ARGV)
p ARGV
//}
↓
$ ruby opt.rb -a foo somefile -b
:a
["-a", "foo", "somefile", "-b"]... -
OptionParser
# order(*args , into: nil) -> [String] (6204.0) -
与えられた argv を順番にパースします。 オプションではないコマンドの引数(下の例で言うと somefile)に出会うと、パースを中断します。 argv からオプションを取り除いたものを返します。
...サブク
ラスになります。
//emlist[opt.rb][ruby]{
require 'optparse'
opt = OptionParser.new
opt.on('-a [VAL]') {|v| p :a }
opt.on('-b') {|v| p :b }
opt.order(ARGV)
p ARGV
//}
↓
$ ruby opt.rb -a foo somefile -b
:a
["-a", "foo", "somefile", "-b"]... -
OptionParser
# order(*args , into: nil) {|s| . . . } -> [String] (6204.0) -
与えられた argv を順番にパースします。 オプションではないコマンドの引数(下の例で言うと somefile)に出会うと、パースを中断します。 argv からオプションを取り除いたものを返します。
...サブク
ラスになります。
//emlist[opt.rb][ruby]{
require 'optparse'
opt = OptionParser.new
opt.on('-a [VAL]') {|v| p :a }
opt.on('-b') {|v| p :b }
opt.order(ARGV)
p ARGV
//}
↓
$ ruby opt.rb -a foo somefile -b
:a
["-a", "foo", "somefile", "-b"]... -
OptionParser
# order(argv) -> [String] (6204.0) -
与えられた argv を順番にパースします。 オプションではないコマンドの引数(下の例で言うと somefile)に出会うと、パースを中断します。 argv からオプションを取り除いたものを返します。
...サブク
ラスになります。
//emlist[opt.rb][ruby]{
require 'optparse'
opt = OptionParser.new
opt.on('-a [VAL]') {|v| p :a }
opt.on('-b') {|v| p :b }
opt.order(ARGV)
p ARGV
//}
↓
$ ruby opt.rb -a foo somefile -b
:a
["-a", "foo", "somefile", "-b"]... -
OptionParser
# order(argv) {|s| . . . } -> [String] (6204.0) -
与えられた argv を順番にパースします。 オプションではないコマンドの引数(下の例で言うと somefile)に出会うと、パースを中断します。 argv からオプションを取り除いたものを返します。
...サブク
ラスになります。
//emlist[opt.rb][ruby]{
require 'optparse'
opt = OptionParser.new
opt.on('-a [VAL]') {|v| p :a }
opt.on('-b') {|v| p :b }
opt.order(ARGV)
p ARGV
//}
↓
$ ruby opt.rb -a foo somefile -b
:a
["-a", "foo", "somefile", "-b"]... -
OptionParser
# order(argv , into: nil) -> [String] (6204.0) -
与えられた argv を順番にパースします。 オプションではないコマンドの引数(下の例で言うと somefile)に出会うと、パースを中断します。 argv からオプションを取り除いたものを返します。
...サブク
ラスになります。
//emlist[opt.rb][ruby]{
require 'optparse'
opt = OptionParser.new
opt.on('-a [VAL]') {|v| p :a }
opt.on('-b') {|v| p :b }
opt.order(ARGV)
p ARGV
//}
↓
$ ruby opt.rb -a foo somefile -b
:a
["-a", "foo", "somefile", "-b"]... -
OptionParser
# order(argv , into: nil) {|s| . . . } -> [String] (6204.0) -
与えられた argv を順番にパースします。 オプションではないコマンドの引数(下の例で言うと somefile)に出会うと、パースを中断します。 argv からオプションを取り除いたものを返します。
...サブク
ラスになります。
//emlist[opt.rb][ruby]{
require 'optparse'
opt = OptionParser.new
opt.on('-a [VAL]') {|v| p :a }
opt.on('-b') {|v| p :b }
opt.order(ARGV)
p ARGV
//}
↓
$ ruby opt.rb -a foo somefile -b
:a
["-a", "foo", "somefile", "-b"]... -
CGI
:: HtmlExtension # password _ field(attributes) -> String (6202.0) -
タイプが password である input 要素を生成します。
...タイプが password である input 要素を生成します。
@param attributes 属性をハッシュで指定します。
例:
password_field({ "NAME" => "name", "VALUE" => "value" })
# <INPUT TYPE="password" NAME="name" VALUE="value">...