52件ヒット
[1-52件を表示]
(0.096秒)
別のキーワード
ライブラリ
- ビルトイン (36)
-
net
/ telnet (4) - stringio (12)
クラス
-
ARGF
. class (36) -
Net
:: Telnet (4) - StringIO (12)
キーワード
- binmode? (12)
-
internal
_ encoding (12) - preprocess (2)
- print (2)
検索結果
先頭5件
-
ARGF
. class # binmode -> self (21120.0) -
self をバイナリモードにします。一度バイナリモードになった後は非バイナリ モードに戻る事はできません。
...:
# 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?... -
StringIO
# binmode -> self (21102.0) -
何もせずに self を返します。
何もせずに self を返します。 -
ARGF
. class # binmode? -> bool (9138.0) -
ARGF の入力ストリームがバイナリモードなら true を返します。 そうでない場合、false を返します。
...ARGF の入力ストリームがバイナリモードなら true を返します。
そうでない場合、false を返します。
バイナリモードにするためには ARGF.class#binmode を使用します。
ARGF.binmode? # => false
ARGF.binmode
ARGF.binmode? # => true
@see IO#bin......mode?, ARGF.class#binmode... -
ARGF
. class # internal _ encoding -> Encoding | nil (6207.0) -
ARGF から読み込んだ文字列の内部エンコーディングを返します。 内部エンコーディングが指定されていない場合は nil を返します。
...GF から読み込んだ文字列の内部エンコーディングを返します。
内部エンコーディングが指定されていない場合は 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... -
Net
:: Telnet # preprocess(string) -> String (113.0) -
ホストから受け取った文字列の前処理をします。
...このメソッドを呼ぶ必要があるでしょう。
前処理の内容は Net::Telnet#telnetmode や
Net::Telnet#binmode によって変わります。
@param string 前処理対象の文字列
@return 変換後の文字列
@see Net::Telnet.new, Net::Telnet#telnetmode, Net::Telnet#binmode... -
Net
:: Telnet # print(string) -> () (107.0) -
ホストに文字列を送ります。
...プされます。
これらの変換はNet::Telnet#telnetmode, Net::Telnet#binmode,
およびホストから設定された telnet オプションによって(変換するしないなどが)
制御されます。
@param string ホストに送る文字列
@see Net::Telnet#write, Net::Telnet#puts...