ライブラリ
- ビルトイン (55)
- csv (22)
-
net
/ telnet (8) - stringio (11)
クラス
-
ARGF
. class (33) - CSV (22)
- IO (22)
-
Net
:: Telnet (8) - StringIO (11)
キーワード
- binmode= (2)
- binmode? (33)
-
internal
_ encoding (11) - preprocess (2)
- print (2)
検索結果
先頭5件
-
Net
:: Telnet # binmode(mode=nil) -> bool (18134.0) -
引数を指定しない場合には"Binmode"の値を返します。 引数を与えた場合は"Binmode"の値を変更します。
...引数を指定しない場合には"Binmode"の値を返します。
引数を与えた場合は"Binmode"の値を変更します。
これは改行文字の変換をするかどうかを意味します。
@param mode 設定する値をtrue/falseで与えます
@see Net::Telnet.new... -
IO
# binmode -> self (18132.0) -
ストリームをバイナリモードにします。MSDOS などバイナリモードの存在 する OS でのみ有効です。そうでない場合このメソッドは何もしません。
...ンしかありません。
@raise Errno::EXXX モードの変更に失敗した場合に発生します。
//emlist[例][ruby]{
IO.open(IO.sysopen("testfile", "w+")) do |io|
io.binmode? # => false
io.binmode # => #<IO:fd 8>
io.binmode? # => true
end
//}
@see c:IO#io_binmode, IO#binmode?... -
CSV
# binmode -> self (18124.0) -
IO#binmode に委譲します。
...IO#binmode に委譲します。
@see IO#binmode... -
ARGF
. class # binmode -> self (18120.0) -
self をバイナリモードにします。一度バイナリモードになった後は非バイナリ モードに戻る事はできません。
...test1.png + test2.png = 292B
# $ ruby test.rb test1.png test2.png
ARGF.binmode
ARGF.read.size # => 292
例:
# test1.png - 164B
# test2.png - 128B
# test1.png + test2.png = 292B
# $ ruby test.rb test1.png test2.png
ARGF.read.size # => 290
@see IO#binmode, ARGF.class#binmode?... -
StringIO
# binmode -> self (18102.0) -
何もせずに self を返します。
何もせずに self を返します。 -
ARGF
. class # binmode? -> bool (6138.0) -
ARGF の入力ストリームがバイナリモードなら true を返します。 そうでない場合、false を返します。
...ムがバイナリモードなら true を返します。
そうでない場合、false を返します。
バイナリモードにするためには ARGF.class#binmode を使用します。
ARGF.binmode? # => false
ARGF.binmode
ARGF.binmode? # => true
@see IO#binmode?, ARGF.class#binmode... -
CSV
# binmode? -> bool (6124.0) -
IO#binmode? に委譲します。
...IO#binmode? に委譲します。
@see IO#binmode?... -
Net
:: Telnet # binmode=(mode) (6124.0) -
"Binmode" を設定します。これは改行文字の変換をするかどうかを意味します。
..."Binmode" を設定します。これは改行文字の変換をするかどうかを意味します。
@param mode 設定する値をtrue/falseで与えます
@see Net::Telnet.new, Net::Telnet#binmode... -
IO
# binmode? -> bool (6114.0) -
自身がバイナリモードなら true を返します。そうでない場合、false を返します。
...自身がバイナリモードなら true を返します。そうでない場合、false を返します。
@see c:IO#io_binmode, IO#binmode... -
Net
:: Telnet # preprocess(string) -> String (13.0) -
ホストから受け取った文字列の前処理をします。
...このメソッドを呼ぶ必要があるでしょう。
前処理の内容は Net::Telnet#telnetmode や
Net::Telnet#binmode によって変わります。
@param string 前処理対象の文字列
@return 変換後の文字列
@see Net::Telnet.new, Net::Telnet#telnetmode, Net::Telnet#binmode... -
ARGF
. class # internal _ encoding -> Encoding | nil (7.0) -
ARGF から読み込んだ文字列の内部エンコーディングを返します。 内部エンコーディングが指定されていない場合は nil を返します。
...$ ruby -Eutf-8 test.rb
# test.rb
ARGF.internal_encoding # => #<Encoding:UTF-8>
ARGF.set_encoding('utf-8','ascii')
ARGF.internal_encoding # => #<Encoding:US-ASCII>
例:
ARGF.binmode
ARGF.internal_encoding # => nil
@see IO, ARGF.class#external_encoding... -
Net
:: Telnet # print(string) -> () (7.0) -
ホストに文字列を送ります。
...中の改行は変換されます。telnetコマンドはエスケープされます。
これらの変換はNet::Telnet#telnetmode, Net::Telnet#binmode,
およびホストから設定された telnet オプションによって(変換するしないなどが)
制御されます。
@param string...