るりまサーチ

最速Rubyリファレンスマニュアル検索!
2693件ヒット [1-100件を表示] (0.146秒)
トップページ > クエリ:t[x] > 種類:ライブラリ[x]

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. matrix t
  4. t61string new
  5. fiddle type_size_t

キーワード

検索結果

<< 1 2 3 ... > >>

tsort (26115.0)

tsort はトポロジカルソートと強連結成分に関するモジュールを提供します。

...tsort はトポロジカルソートと強連結成分に関するモジュールを提供します。

=== Example

//emlist[][ruby]{
require 'tsort'

class Hash
include TSort
alias tsort_each_node each_key
def tsort_each_child(node, &block)
fetch(node).each(&block)
end
end

{1=>[2, 3],...
...=>[]}.tsort
#=> [3, 2, 1, 4]

{1=>[2], 2=>[3, 4], 3=>[2], 4=>[]}.strongly_connected_components
#=> [[4], [2, 3], [1]]
//}

=== より現実的な例

非常に単純な `make' に似たツールは以下のように実装できます。

//emlist[][ruby]{
require 'tsort'

class Make
def initialize...
...default = []
end

def rule(outputs, inputs=[], &block)
t
riple = [outputs, inputs, block]
outputs.each {|f| @dep[f] = [triple]}
@dep[triple] = inputs
end

def build(target)
each_strongly_connected_component_from(target) {|ns|
if ns.length != 1
fs = ns.delete_if {...

test/unit (26013.0)

ユニットテストを行うためのライブラリです。

...参照してください。

* Test::Unit - Ruby用単体テストフレームワーク: https://test-unit.github.io/

なお、2.2.0より前のtest/unit は当時バンドルしていた minitest/unit を使って再実装し
ていましたが、上記のtest/unitと完全な互換性がある...
...ィングフレームワークの歴史(2014年版) https://www.clear-code.com/blog/2014/11/6.html
* RubyKaigi 2015:The history of testing framework in Ruby https://www.clear-code.com/blog/2015/12/12.html

=== 使い方

T
est::Unit は以下のように使います。

まずテスト対象...
...ath to ruby; It'll have used at -j option
-q, --hide-skip Hide skipped tests
-b, --basedir=DIR Base directory of test suites.
-x, --exclude PATTERN Exclude test files on pattern.
-Idirectory Add library load path...

tempfile (26001.0)

テンポラリファイルを操作するためのクラスです

...テンポラリファイルを操作するためのクラスです

=== 参考
標準添付ライブラリ紹介 【第 15 回】 tmpdir, tempfile https://magazine.rubyist.net/articles/0029/0029-BundledLibraries.html...

test/unit (26001.0)

ユニットテストを行うためのライブラリです。

...参照してください。

* Test::Unit - Ruby用単体テストフレームワーク: https://test-unit.github.io/

なお、2.2.0より前のtest/unit は当時バンドルしていた minitest/unit を使って再実装し
ていましたが、上記のtest/unitと完全な互換性がある...
...史については以下が詳しくまとまっています。

* Rubyのテスティングフレームワークの歴史(2014年版) https://www.clear-code.com/blog/2014/11/6.html
* RubyKaigi 2015:The history of testing framework in Ruby https://www.clear-code.com/blog/2015/12/12.html...

thread (26001.0)

このライブラリで提供されていたクラスは 2.3.0 で組み込みクラスになりまし た。互換性のためだけに残されています。

...間キューや状態変数 (condition variable) を提供するライブラリです。

このライブラリは Thread を拡張します。rubyインタプリタを
デバッグオプション付き($DEBUGを真)で実行したときには、
T
hread.abort_on_exception を true にします。...
このライブラリで提供されていたクラスは 2.3.0 で組み込みクラスになりまし
た。互換性のためだけに残されています。

絞り込み条件を変える

thwait (26001.0)

複数スレッドの終了を待つ機能を提供します。

複数スレッドの終了を待つ機能を提供します。

time (26001.0)

組み込みの Time クラスを拡張します。 日時を表す文字列をパースして Time オブジェクトに変換したり、 逆に Time オブジェクトを RFC などで定められた文字列に 変換する機能を提供します。

... Time クラスを拡張します。
日時を表す文字列をパースして Time オブジェクトに変換したり、
逆に Time オブジェクトを RFC などで定められた文字列に
変換する機能を提供します。

* date-time は 2822 で定義されています。
* HTT...
...P-date は 2616 で定義されています。
* dateTime は XML Schema Part 2: Datatypes (ISO 8601) で定義されています。
* 文字列から Time オブジェクトへの変換では Date._parse により様々な形式を扱えます。...

timeout (26001.0)

タイムアウトを行うライブラリです。

タイムアウトを行うライブラリです。

tmpdir (26001.0)

テンポラリディレクトリのためのライブラリです。

テンポラリディレクトリのためのライブラリです。

tracer (26001.0)

実行トレース出力をとる機能を提供します。

...ruby -rtracer hoge.rb

もうひとつはソースからrequireする方法です。

require 'tracer'

とした後

T
racer.on

によりトレース出力を有効にします。

T
racer.off

によりトレース出力を無効にします。

また、ブロック付きで Tracer.on...
...'tracer'

class Hoge
def Hoge.fuga(i)
"fuga #{i}"
end
end

T
racer.add_filter {|event, file, line, id, binding, klass|
event =~ /line/ and klass.to_s =~ /hoge/i
}
T
racer.on
for i in 0..3
puts Hoge.fuga(i) if i % 3 == 0
end
T
racer.off

=== SEE ALSO

Kernel.#set_t...

絞り込み条件を変える

<< 1 2 3 ... > >>