るりまサーチ

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

別のキーワード

  1. win32ole ole_respond_to?
  2. object respond_to?
  3. _builtin respond_to?
  4. delegate respond_to?
  5. delegator respond_to?

ライブラリ

クラス

検索結果

Delegator#respond_to?(m) -> bool (21201.0)

Delegator#__getobj__ が返すオブジェクトが メソッド m を持つとき真を返します。

...Delegator#__getobj__ が返すオブジェクトが メソッド m を持つとき真を返します。

@param m メソッド名

@see Object#respond_to?...

Object#respond_to?(name, include_all = false) -> bool (18201.0)

オブジェクトがメソッド name を持つとき真を返します。

...きることをいいます。

Windows での Process.fork や GNU/Linux での File.lchmod の
ような NotImplementedError が発生する場合は false を返します。

※ NotImplementedError が発生する場合に false を返すのは
Rubyの組み込みライブラリや標準ライ...
...NotImplementedError が発生する場合は true を返します。

メソッドが定義されていない場合は、Object#respond_to_missing? を呼
び出してその結果を返します。

@param name Symbol または文字列で指定するメソッド名です。

@param include_all priv...
...false で指定します。省略した場合
は false(含めない) を指定した事になります。

//emlist[][ruby]{
class F
def hello
"Bonjour"
end
end

class D
private
def hello
"Guten Tag"
end
end
l
ist = [F.new,D.new]

l
ist.each{|it| puts it.hello if...

WIN32OLE#ole_respond_to?(name) -> bool (15201.0)

指定したメソッドをオブジェクトがサポートしているか調べます。

...ブジェクトがサポートしているか調べます。

OLEオートメーションサーバが引数で指定した名前のメソッド(プロパティ)を
サポートしているかどうかを調べます。

なお、OLEオートメーションの仕様により、メソッド名の...
...ド名を文字列またはシンボルで指定します。

@return nameで指定したメソッドをオブジェクトが提供していれば真を返します。

excel = WIN32OLE.new('Excel.Application')
excel.ole_respond_to?(:quit) #=> true
excel.ole_respond_to?(:exit) #=> false...