るりまサーチ (Ruby 3.1)

最速Rubyリファレンスマニュアル検索!
3件ヒット [1-3件を表示] (0.136秒)
トップページ > 種類:インスタンスメソッド[x] > クエリ:u[x] > クエリ:|[x] > バージョン:3.1[x] > クラス:UnboundMethod[x]

別のキーワード

  1. erb u
  2. util u
  3. matrix u
  4. _builtin koi8_u
  5. encoding koi8_u

ライブラリ

キーワード

検索結果

UnboundMethod#source_location -> [String, Integer] | nil (27610.0)

ソースコードのファイル名と行番号を配列で返します。

ソースコードのファイル名と行番号を配列で返します。

その手続オブジェクトが ruby で定義されていない(つまりネイティブ
である)場合は nil を返します。

//emlist[例][ruby]{
require 'time'

Time.instance_method(:zone).source_location # => nil
Time.instance_method(:httpdate).source_location # => ["/Users/user/.rbenv/versions/2.4.3/lib/ruby/2.4.0/time.rb", 654]
/...

UnboundMethod#super_method -> UnboundMethod | nil (27610.0)

self 内で super を実行した際に実行されるメソッドを UnboundMethod オブジェ クトにして返します。

...self 内で super を実行した際に実行されるメソッドを UnboundMethod オブジェ
クトにして返します。


@see Method#super_method...

UnboundMethod#owner -> Class | Module (18610.0)

このメソッドが定義されている class か module を返します。

このメソッドが定義されている class か module を返します。

//emlist[例][ruby]{
Integer.instance_method(:to_s).owner # => Integer
Integer.instance_method(:to_c).owner # => Numeric
Integer.instance_method(:hash).owner # => Kernel
//}