534件ヒット
[1-100件を表示]
(0.132秒)
キーワード
-
_ builtin (11) - bigdecimal (11)
- cgi (11)
- continuation (11)
- find (11)
- irb (11)
-
irb
/ completion (11) -
irb
/ init (11) -
irb
/ input-method (11) -
irb
/ inspector (11) -
irb
/ src _ encoding (11) - logger (11)
-
minitest
/ autorun (11) -
minitest
/ mock (11) -
minitest
/ spec (11) -
minitest
/ unit (11) - optparse (11)
- prettyprint (11)
- rdoc (11)
-
rdoc
/ generator / json _ index (11) -
rdoc
/ include (11) -
rdoc
/ single _ class (11) - readline (11)
-
rinda
/ rinda (11) -
rinda
/ tuplespace (11) -
rubygems
/ commands / generate _ index _ command (11) -
rubygems
/ commands / install _ command (11) -
rubygems
/ commands / pristine _ command (11) -
rubygems
/ commands / uninstall _ command (11) -
rubygems
/ dependency _ installer (11) -
rubygems
/ indexer (11) -
rubygems
/ installer (11) -
rubygems
/ package / tar _ input (11) -
rubygems
/ security (11) -
rubygems
/ source _ index (11) -
rubygems
/ source _ info _ cache (11) -
rubygems
/ source _ info _ cache _ entry (11) -
rubygems
/ uninstaller (11) -
rubygems
/ user _ interaction (11) -
shell
/ builtin-command (6) - singleton (11)
- stringio (11)
-
test
/ unit (11) - tracer (11)
- uri (11)
-
win32
/ registry (11) -
win32
/ resolv (11) - win32ole (11)
検索結果
-
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"
include 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|
if 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 パッケージをインストールします
Install/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を使ってください。...