88件ヒット
[1-88件を表示]
(0.135秒)
別のキーワード
ライブラリ
- ビルトイン (48)
- csv (24)
-
net
/ telnet (4) - stringio (12)
クラス
-
ARGF
. class (24) - CSV (24)
- IO (24)
-
Net
:: Telnet (4) - StringIO (12)
検索結果
先頭5件
-
ARGF
. class # binmode -> self (24256.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.p......ng test2.png
ARGF.read.size # => 290
@see IO#binmode, ARGF.class#binmode?... -
Net
:: Telnet # binmode(mode=nil) -> bool (24234.0) -
引数を指定しない場合には"Binmode"の値を返します。 引数を与えた場合は"Binmode"の値を変更します。
...引数を指定しない場合には"Binmode"の値を返します。
引数を与えた場合は"Binmode"の値を変更します。
これは改行文字の変換をするかどうかを意味します。
@param mode 設定する値をtrue/falseで与えます
@see Net::Telnet.new... -
IO
# binmode -> self (24232.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 (24224.0) -
IO#binmode に委譲します。
...IO#binmode に委譲します。
@see IO#binmode... -
StringIO
# binmode -> self (24202.0) -
何もせずに self を返します。
何もせずに self を返します。 -
ARGF
. class # binmode? -> bool (12238.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 (12224.0) -
IO#binmode? に委譲します。
...IO#binmode? に委譲します。
@see IO#binmode?... -
Net
:: Telnet # binmode=(mode) (12224.0) -
"Binmode" を設定します。これは改行文字の変換をするかどうかを意味します。
..."Binmode" を設定します。これは改行文字の変換をするかどうかを意味します。
@param mode 設定する値をtrue/falseで与えます
@see Net::Telnet.new, Net::Telnet#binmode... -
IO
# binmode? -> bool (12214.0) -
自身がバイナリモードなら true を返します。そうでない場合、false を返します。
...自身がバイナリモードなら true を返します。そうでない場合、false を返します。
@see c:IO#io_binmode, IO#binmode...