るりまサーチ

最速Rubyリファレンスマニュアル検索!
4件ヒット [1-4件を表示] (0.156秒)
トップページ > 種類:インスタンスメソッド[x] > クエリ:r[x] > クエリ:ruby[x] > クエリ:@[x] > クラス:Class[x] > クエリ:superclass[x]

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. fileutils cp_r
  5. fileutils rm_r

ライブラリ

検索結果

Class#superclass -> Class | nil (24257.0)

自身のスーパークラスを返します。

...][ruby]{
File.superclass #=> IO
IO.superclass #=> Object
class
Foo; end
class
Bar < Foo; end
Bar.superclass #=> Foo
Object.superclass #=> BasicObject
//}

ただし BasicObject.superclass は nil を返します。

//emlist[例][ruby]{
BasicObject.superclass #...
...=> nil
//}

@
see Class#subclasses...