るりまサーチ

最速Rubyリファレンスマニュアル検索!
132件ヒット [1-100件を表示] (0.021秒)

別のキーワード

  1. optparse on
  2. optionparser on
  3. tracer on
  4. socket udp_server_loop_on
  5. thread abort_on_exception

ライブラリ

クラス

キーワード

検索結果

<< 1 2 > >>

Tracer.off -> nil (18124.0)

トレース出力を中断します。 トレース出力を開始するには、Tracer.onを使用します。

...トレース出力を中断します。
トレース出力を開始するには、Tracer.onを使用します。

@see Tracer.on...

Tracer.on -> nil (18115.0)

トレース出力を開始します。 ブロックを与えられた場合はそのブロック内のみトレース出力を行います。

...トレース出力を開始します。
ブロックを与えられた場合はそのブロック内のみトレース出力を行います。

require 'tracer'

Tracer.on
class Test
def test
b = 2
end
end

t = Test.new
t.test

@see Tracer.off...

Tracer.on {...} (18115.0)

トレース出力を開始します。 ブロックを与えられた場合はそのブロック内のみトレース出力を行います。

...トレース出力を開始します。
ブロックを与えられた場合はそのブロック内のみトレース出力を行います。

require 'tracer'

Tracer.on
class Test
def test
b = 2
end
end

t = Test.new
t.test

@see Tracer.off...

Socket::Option.linger(onoff, secs) -> Socket::Option (3301.0)

SOL_SOCKET/SO_LINGER 用の Socket::Option オブジェクト を新たに生成し返します。

...SOL_SOCKET/SO_LINGER 用の Socket::Option オブジェクト
を新たに生成し返します。

@param onoff 0/1もしくは真偽値
@param secs 整数値...

DateTime.civil(year = -4712, mon = 1, mday = 1, hour = 0, min = 0, sec = 0, offset = 0, start = Date::ITALY) -> DateTime (201.0)

暦日付に相当する日時オブジェクトを生成します。

...降では、"+0900" のような時差をあらわす文字列もつかえます。

@param year 年
@param mon
@param mday 日
@param hour 時
@param min 分
@param sec 秒
@param offset 時差
@param start グレゴリオ暦をつかい始めた日をあらわすユリウス日
@raise Argument...

絞り込み条件を変える

DateTime.new(year = -4712, mon = 1, mday = 1, hour = 0, min = 0, sec = 0, offset = 0, start = Date::ITALY) -> DateTime (201.0)

暦日付に相当する日時オブジェクトを生成します。

...降では、"+0900" のような時差をあらわす文字列もつかえます。

@param year 年
@param mon
@param mday 日
@param hour 時
@param min 分
@param sec 秒
@param offset 時差
@param start グレゴリオ暦をつかい始めた日をあらわすユリウス日
@raise Argument...

CSV.new(data, options = Hash.new) -> CSV (119.0)

このメソッドは CSV ファイルを読み込んだり、書き出したりするために String か IO のインスタンスをラップします。

...ンスタンスを指定した場合、CSV#string を使用して
後からデータを取り出すことが出来ます。

@param options CSV をパースするためのオプションをハッシュで指定します。
パフォーマンス上の理由でインスタ...
...If none of those sequences is
found, +data+ is ARGF, Object::STDIN, Object::STDOUT, or
Object::STDERR, or the stream is only available for output, the default
$INPUT_RECORD_SEPARATOR ($/) is used. Obviously,
discovery takes a little time. Set manually if speed is important. Also
n
ote...
...that IO objects should be opened in binary mode on Windows if this
feature will be used as the line-ending translation can cause
problems with resetting the document position to where it was before the
read ahead. This String will be transcoded into the data's Encoding before parsing.
:...

IO.binread(path, length = nil, offset = 0) -> String | nil (113.0)

path で指定したファイルを open し、offset の所まで seek し、 length バイト読み込みます。

...path で指定したファイルを open し、offset の所まで seek し、
length バイト読み込みます。

Kernel.#open と同様 path の先頭が "|" ならば、"|" に続くコマンドの出力を読み取ります。

length を省略するとファイルの末尾まで読み込み...
...his is line one\nThis is line two\nThis is line three\nAnd so on...\n")
IO.binread("testfile") # => "This is line one\nThis is line two\nThis is line three\nAnd so on...\n"
IO.binread("testfile", 20) # => "This is line one\nThi"
IO.binread("testfile", 20, 10) # => "ne one\nThis is...

IO.write(path, string, offset=nil, **opts) -> Integer (113.0)

path で指定されるファイルを開き、string を書き込み、 閉じます。

...|" ならば、"|" に続くコマンドを実行し、コマンドの出力を標準出力に書き込みます。

off
set を指定するとその位置までシークします。

off
set を指定しないと、書き込みの末尾でファイルを
切り捨てます。

キーワード引数...
...文字列
@param string 書き込む文字列
@param offset 書き込み開始位置
@param opts ファイルを開くときのキーワード引数

//emlist[例][ruby]{
text = "This is line one\nThis is line two\nThis is line three\nAnd so on...\n"
IO.write("testfile", text) # => 66
I...
...O.write("testfile", "0123456789", 20) #=> 10
IO.read("testfile")
# => "This is line one\nThi0123456789two\nThis is line three\nAnd so on...\n"
IO.write("testfile", "0123456789") #=> 10
IO.read("testfile") # => "0123456789"
//}

@see IO.binwrite...
<< 1 2 > >>