るりまサーチ

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

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. csv to_i
  5. matrix i

検索結果

<< 1 2 3 ... > >>

rinda/rinda (24001.0)

Rubyで実装されたタプルスペース(Tuple Space)を扱うためのライブラリです。

...対しては、タプルを書き込む(write)、取り出す(take)、
タプルの要素を覗き見る(read)
という操作のみが利用できます。可能な操作を限定し、定型化することで
安全な同期処理を実現します。rinda においてはタプルとは
配列も...
...ースそのものの実装は rinda/tuplespace でなされています。
このライブラリはタプルスペースへのアクセス機能等を提供します。

=== 参考
* http://www.druby.org/ilikeruby/rinda.html
* http://www2a.biglobe.ne.jp/~seki/ruby/d208.html

===[a:tuplepattern]...
...タプルのパターンについて
Rinda::TupleSpace#take や Rinda::TupleSpaceProxy#take などでは
取り出したいタプルを指定するため、パターンをメソッドの引数に渡す必要があります。

パターンは配列、もしくはハッシュテーブルのいずれ...

rdoc/generator/json_index (12037.0)

他のジェネレータが生成する HTML で検索が行えるように、JSON の検索インデッ クスを生成するサブライブラリです。

...This generator is derived from sdoc by Vladimir Kolesnikov and
contains verbatim code written by him.

このジェネレータは HTML ジェネレータと一緒に使うために設計されています。:

class RDoc::Generator::Darkfish
def initialize options
# ...
@base_dir...
...= Pathname.pwd.expand_path

@json_index = RDoc::Generator::JsonIndex.new self, options
end

def generate
# ...
@json_index.generate
end
end

=== インデックスフォーマット

検索用のインデックスは JSON ファイルに出力されます。search_dat...
...data = {
"index": {
"searchIndex":
["a", "b", ...],
"longSearchIndex":
["a", "a::b", ...],
"info": [
["A", "A", "A.html", "", ""],
["B", "A::B", "A::B.html", "", ""],
...
]
}
}

searchIndex、longSearchIndex、info 中の情...

minitest/unit (12013.0)

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

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

=== 使い方

minitest/unit は以下のように使います。

テスト対象のソース (foo.rb) を用意します。

class Foo
def foo
"foo"
end
def bar
"foo"
end
end

次にユニットテス...
...rdown メソッドが必ず実行されます。

minitest/unit を Kernel.#require しただけではテストが自動実行されません。

require 'minitest/unit'
require 'foo'

MiniTest::Unit.autorun

class TestFoo < MiniTest::Unit::TestCase
def setup
@foo = Foo.new...
...@foo = nil
end

def test_foo
assert_equal "foo", @foo.foo
end

def test_bar
assert_equal "bar", @foo.bar
end
end

または MiniTest::Unit.autorun を省略して以下のように書くこともできます。

require 'minitest/unit'
require 'minitest/aut...

rubygems/commands/uninstall_command (12013.0)

Gem パッケージをアンインストールするためのライブラリです。

...uninstall GEMNAME [GEMNAME ...] [options]
Options:
-a, --[no-]all Uninstall all matching versions
-I, --[no-]ignore-dependencies Ignore dependency requirements while
uninstalling
-x, --[no-]executables Uninstall applica...
...ble executables without
confirmation
-i, --install-dir DIR Directory to uninstall gem from
-n, --bindir DIR Directory to remove binaries from
-v, --version VERSION Specify version of gem to uninstall
--pla...
...ecify the platform of gem to uninstall
Common Options:
-h, --help このコマンドのヘルプを表示します
-V, --[no-]verbose 表示を詳細にします
-q, --quiet 静かに実行します
--config-fil...

find (12007.0)

ディレクトリ配下のファイルを探索するためのモジュールです。

...ールです。

=== 使い方

require "find"

Find.find('/foo','/bar') {|f| ...}

または

require "find"

in
clude Find
find('/foo','/bar') {|f| ...}

以下は、ruby のアーカイブに含まれるサンプルスクリプト
(https://github.com/ruby/ruby/blob/master/sample/troj...
...#! /usr/bin/env ruby
require "find"
# 他人が書き込み可能な危険なコマンドを探す

for dir in ENV['PATH'].split(File::PATH_SEPARATOR)
Find.find(dir) do |fpath|
i
f File.file?(fpath) and (File.stat(fpath).mode & 022) != 0
printf("file %s is writable from o...

絞り込み条件を変える

rubygems/commands/generate_index_command (12007.0)

ある Gem サーバに対するインデックスを作成するためのライブラリです。

...ンデックスを作成するためのライブラリです。

Usage: gem generate_index [options]
Options:
-d, --directory=DIRNAME repository base dir containing gems subdir
Common Options:
-h, --help このコマンドのヘルプを表示し...
...ます
-V, --[no-]verbose 表示を詳細にします
-q, --quiet 静かに実行します
--config-file FILE 指定された設定ファイルを使用します
--backtrace バックトレースを表示...
...s the index files for a gem server directory
Description:
The generate_index command creates a set of indexes for serving gems
statically. The command expects a 'gems' directory under the path given to
the --directory option. When done, it will generate a set of files like...

rubygems/commands/install_command (12007.0)

Gem パッケージをローカルリポジトリにインストールするためのライブラリです。

...ラリです。

Usage: gem install GEMNAME [GEMNAME ...] [options] -- --build-flags [options]
Options:
--platform PLATFORM 指定されたプラットフォームの Gem パッケージをインストールします
-v, --version VERSION 指定されたバ...
...ージョンの Gem パッケージをインストールします
In
stall/Update Options:
-i, --install-dir DIR Gem パッケージのインストー先を指定します
-n, --bindir DIR Gem パッケージに含まれるバイナリファイルの配置...
...RDoc を生成します
--[no-]ri インストール時に RI ドキュメントを生成します
-E, --[no-]env-shebang インストールするスクリプトの shebang line を書き換えます(/usr/bin/env)
-f, --[no-]force...

rubygems/commands/pristine_command (12007.0)

インストールされている Gem パッケージを初期状態にするためのライブラリです。

...ラリです。

Usage: gem pristine [args] [options]
Options:
--all インストールされている全ての Gem パッケージを
初期状態に戻します
-v, --version VERSION 指定したバー...
...します
Common Options:
-h, --help このコマンドのヘルプを表示します
-V, --[no-]verbose 表示を詳細にします
-q, --quiet 静かに実行します
--config-file FILE 指定され...
...restore to pristine condition (unless --all)
Summary:
Restores installed gems to pristine condition from files located in the gem
cache
Description:
The pristine command compares the installed gems with the contents of the
cached gem and restores any files that don't...

_builtin (12001.0)

組み込みライブラリは Ruby 本体に組み込まれているライブラリです。 このライブラリに含まれるクラスやモジュールは、 require を書かなくても使うことができます。

...組み込みライブラリは Ruby 本体に組み込まれているライブラリです。
このライブラリに含まれるクラスやモジュールは、
require を書かなくても使うことができます。...

continuation (12001.0)

Ruby 1.9 以降で継続オブジェクトを扱うためのライブラリです。

...Ruby 1.9 以降で継続オブジェクトを扱うためのライブラリです。

Ruby 2.2.0から非推奨になりました。代わりにFiberを使ってください。...

絞り込み条件を変える

<< 1 2 3 ... > >>