るりまサーチ

最速Rubyリファレンスマニュアル検索!
453件ヒット [1-100件を表示] (0.078秒)

別のキーワード

  1. _builtin to_c
  2. etc sc_2_c_dev
  3. etc sc_2_c_bind
  4. tracer display_c_call
  5. tracer display_c_call=

検索結果

<< 1 2 3 ... > >>

Rake::GemPackageTask#define (21102.0)

タスクを定義します。

...タスクを定義します。

GemPackageTask.new にブロックが与えられている場合に、自動的に呼び出されます。...

Rake::PackageTask#define -> self (21102.0)

タスクを定義します。

タスクを定義します。

@raise RuntimeError バージョン情報をセットしていない場合に発生します。
初期化時に :noversion が指定されている場合は発生しません。

Rake::RDocTask#define -> self (21102.0)

タスクを定義します。

タスクを定義します。

Encoding::UndefinedConversionError#destination_encoding -> Encoding (15217.0)

エラーを発生させた変換の変換先のエンコーディングを Encoding オブジェクトで返します。

...エラーを発生させた変換の変換先のエンコーディングを Encoding
オブジェクトで返します。

@see Encoding::UndefinedConversionError#source_encoding...

Encoding::UndefinedConversionError#source_encoding -> Encoding (15117.0)

エラーを発生させた変換の変換元のエンコーディングを Encoding オブジェクトで返します。

...ーディングを Encoding
オブジェクトで返します。

変換が多段階になされる場合は元の文字列のものではない
エンコーディングが返される場合があることに注意してください。

@see Encoding::UndefinedConversionError#destination_encoding...

絞り込み条件を変える

Encoding::UndefinedConversionError#destination_encoding_name -> String (15101.0)

エラーを発生させた変換の変換先のエンコーディングを文字列で返します。

...エラーを発生させた変換の変換先のエンコーディングを文字列で返します。

@see Encoding::UndefinedConversionError#destination_encoding...

Encoding::UndefinedConversionError#source_encoding_name -> Encoding (15101.0)

エラーを発生させた変換の変換元のエンコーディングを文字列で返します。

...エラーを発生させた変換の変換元のエンコーディングを文字列で返します。

@see Encoding::UndefinedConversionError#source_encoding...

TracePoint#defined_class -> Class | module (12355.0)

メソッドを定義したクラスかモジュールを返します。

...ジュールを返します。

//emlist[例][ruby]{
c
lass C; def foo; end; end
trace = TracePoint.new(:call) do |tp|
p tp.defined_class # => C
end.enable do
C
.new.foo
end
//}

メソッドがモジュールで定義されていた場合も(include に関係なく)モジュー
ルを返します...
...foo; end; end
c
lass C; include M; end;
trace = TracePoint.new(:call) do |tp|
p tp.defined_class # => M
end.enable do
C
.new.foo
end
//}

[注意] 特異メソッドを実行した場合は TracePoint#defined_class は特異クラ
スを返します。また、Kernel.#set_trace_func の 6 番目...
...はなく元のクラスを返します。

//emlist[例][ruby]{
c
lass C; def self.foo; end; end
trace = TracePoint.new(:call) do |tp|
p tp.defined_class # => #<Class:C>
end.enable do
C
.foo
end
//}

Kernel.#set_trace_func と TracePoint の上記の差分に注意して
ください。

@see 508...

Module#protected_method_defined?(name, inherit=true) -> bool (12249.0)

インスタンスメソッド name がモジュールに定義されており、 しかもその可視性が protected であるときに true を返します。 そうでなければ false を返します。

...おり、
しかもその可視性が protected であるときに true を返します。
そうでなければ false を返します。

@param name Symbol か String を指定します。
@param inherit 真を指定するとスーパークラスや include したモジュールで
定義...
...method_defined?, Module#public_method_defined?, Module#private_method_defined?

//emlist[例][ruby]{
module A
def method1() end
end
c
lass B
protected
def method2() end
end
c
lass C < B
include A
def method3() end
end

A.method_defined? :method1 #=> true
C
.protected_met...
...hod_defined? "method1" #=> false
C
.protected_method_defined? "method2" #=> true
C
.protected_method_defined? "method2", true #=> true
C
.protected_method_defined? "method2", false #=> false
C
.method_defined? "method2" #=> true
//}...
<< 1 2 3 ... > >>