るりまサーチ

最速Rubyリファレンスマニュアル検索!
84件ヒット [1-84件を表示] (0.019秒)
トップページ > クエリ:cat[x] > クエリ:init[x]

別のキーワード

  1. shell cat
  2. cat new
  3. cat each
  4. filter cat
  5. shell/filter cat

検索結果

Rake::Application#init(app_name = 'rake') (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 と同等の動作を実行します。

...
cat
ch と同等の動作を実行します。

まず 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...