86件ヒット
[1-86件を表示]
(0.088秒)
ライブラリ
- ビルトイン (60)
- csv (24)
-
net
/ telnet (2)
クラス
-
ARGF
. class (36) - CSV (24)
- IO (24)
-
Net
:: Telnet (2)
キーワード
- binmode? (36)
-
internal
_ encoding (12) - preprocess (2)
検索結果
先頭5件
-
CSV
# binmode -> self (21124.0) -
IO#binmode に委譲します。
...IO#binmode に委譲します。
@see IO#binmode... -
ARGF
. class # binmode -> self (21120.0) -
self をバイナリモードにします。一度バイナリモードになった後は非バイナリ モードに戻る事はできません。
...文字エンコーディングの変換を停止する
* 内容を ASCII-8BIT として扱う
例:
# test1.png - 164B
# test2.png - 128B
# 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?... -
IO
# binmode -> self (18138.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?... -
ARGF
. class # binmode? -> bool (9138.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 (9124.0) -
IO#binmode? に委譲します。
...IO#binmode? に委譲します。
@see IO#binmode?... -
ARGF
. class # internal _ encoding -> Encoding | nil (6213.0) -
ARGF から読み込んだ文字列の内部エンコーディングを返します。 内部エンコーディングが指定されていない場合は nil を返します。
...Encoding.default_external を返します。
ARGF.class#set_encoding で設定します。
例:
# $ 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... -
IO
# binmode? -> bool (6120.0) -
自身がバイナリモードなら true を返します。そうでない場合、false を返します。
...自身がバイナリモードなら true を返します。そうでない場合、false を返します。
@see c:IO#io_binmode, IO#binmode... -
Net
:: Telnet # preprocess(string) -> String (6113.0) -
ホストから受け取った文字列の前処理をします。
...このメソッドを呼ぶ必要があるでしょう。
前処理の内容は Net::Telnet#telnetmode や
Net::Telnet#binmode によって変わります。
@param string 前処理対象の文字列
@return 変換後の文字列
@see Net::Telnet.new, Net::Telnet#telnetmode, Net::Telnet#binmode...