るりまサーチ

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

別のキーワード

  1. argf.class lines
  2. argf.class each_line
  3. argf.class each
  4. class new
  5. argf.class gets

ライブラリ

クラス

検索結果

Module#singleton_class? -> bool (30338.0)

self が特異クラスの場合に true を返します。そうでなければ false を返し ます。

...self が特異クラスの場合に true を返します。そうでなければ false を返し
ます。

//emlist[例][ruby]{
class
C
end
C.singleton_class? # => false
C.singleton_class.singleton_class? # => true
//}...