84件ヒット
[1-84件を表示]
(0.019秒)
種類
- インスタンスメソッド (49)
- クラス (12)
- 関数 (12)
- 文書 (11)
ライブラリ
- ビルトイン (12)
-
minitest
/ unit (1) - rake (24)
-
rubygems
/ gem _ path _ searcher (12) -
rubygems
/ specification (12)
クラス
-
Gem
:: GemPathSearcher (12) -
Gem
:: Specification (12) -
MiniTest
:: Unit (1) -
Rake
:: Application (24)
キーワード
- Location (12)
-
NEWS for Ruby 2
. 2 . 0 (11) -
init
_ gemspecs (12) - location (1)
-
rb
_ catch (12) - run (12)
-
yaml
_ initialize (12)
検索結果
先頭5件
-
Rake
:: Application # init(app _ name = & # 39;rake& # 39;) (21107.0) -
コマンドラインオプションとアプリケーション名を初期化します。
...ンドラインオプションとアプリケーション名を初期化します。
//emlist[例][ruby]{
# Rakefile での記載例とする
task default: :test
task :test
Rake.application.name # => "rake"
Rake.application.init("MyApp") # => ["default"]
Rake.application.name # => "MyApp"
//}... -
Gem
:: Specification # yaml _ initialize (9100.0) -
@todo
@todo -
MiniTest
:: Unit # location(exception) -> String (9100.0) -
与えられた例外の発生した場所を返します。
与えられた例外の発生した場所を返します。 -
Gem
:: GemPathSearcher # init _ gemspecs -> [Gem :: Specification] (6201.0) -
インストール済みの Gem の Gem::Specification のリストを返します。
...インストール済みの Gem の Gem::Specification のリストを返します。
リストはアルファベット順かつバージョンの新しい順にソートされています。... -
VALUE rb
_ catch(const char *tag , VALUE (*proc)() , VALUE data) (6106.0) -
catch と同等の動作を実行します。
...
catch と同等の動作を実行します。
まず proc に、yield された値と data を渡して実行します。
その途中で tag が throw されたら rb_catch 全体を終了します。
throw が発生した場合はその値を返します。
throw が発生しなかったとき......oo_catch(VALUE obj)
{
return rb_catch("footag", foo_yield, INT2FIX(2));
}
static VALUE
foo_abort(VALUE obj)
{
return rb_throw("footag", Qnil);
}
void
Init_foo(void)
{
VALUE Foo = rb_define_class("Foo", rb_cObject);
rb_define_method(Foo, "catch", foo_catch,... -
Thread
:: Backtrace :: Location (6018.0) -
Ruby のフレームを表すクラスです。
...er_locations から生成されます。
//emlist[例1][ruby]{
# caller_locations.rb
def a(skip)
caller_locations(skip)
end
def b(skip)
a(skip)
end
def c(skip)
b(skip)
end
c(0..2).map do |call|
puts call.to_s
end
//}
例1の実行結果:
caller_locations.rb:2:in `a'
caller_locations.......caller_locations.rb:8:in `c'
//emlist[例2][ruby]{
# foo.rb
class Foo
attr_accessor :locations
def initialize(skip)
@locations = caller_locations(skip)
end
end
Foo.new(0..2).locations.map do |call|
puts call.to_s
end
//}
例2の実行結果:
init.rb:4:in `initialize'
init.rb:8:in... -
Rake
:: Application # run (3006.0) -
Rake アプリケーションを実行します。
...下の 3 ステップを実行します。
* コマンドラインオプションを初期化します。Rake::Application#init
* タスクを定義します。Rake::Application#load_rakefile
* コマンドラインで指定されたタスクを実行します。Rake::Application#top_level... -
NEWS for Ruby 2
. 2 . 0 (18.0) -
NEWS for Ruby 2.2.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...write_nonblock をサポートしました。
* Kernel
* 追加: Kernel.#itself(Object#itself)
* 改善: Kernel.#throw は、対応する catch ブロックがないとき ArgumentError ではなく
ArgumentError のサブクラスである UncaughtThrowError を発生させるよ......ttyprint
* PrettyPrint#first? は削除しました。
* lib/minitest/*.rb
* mintest 5 と衝突するので削除しました。9711
* lib/test/**/*.rb
* minitest 5 と衝突するので削除しました。minitest 4 の単なるラッパーだった。9711
* uri
* 3986......* gserver という gem に切り出しました。メンテナンスしていないコードでした。
* Logger
* Logger::Application は logger-application という gem に切り出しました。メンテナンスしていないコードでした。
* ObjectSpace (after requiring "ob...