2件ヒット
[1-2件を表示]
(0.276秒)
ライブラリ
- ビルトイン (2)
キーワード
-
source
_ location (1) -
super
_ method (1)
検索結果
先頭2件
-
UnboundMethod
# source _ location -> [String , Integer] | nil (24346.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 (24310.0) -
self 内で super を実行した際に実行されるメソッドを UnboundMethod オブジェ クトにして返します。
...self 内で super を実行した際に実行されるメソッドを UnboundMethod オブジェ
クトにして返します。
@see Method#super_method...