るりまサーチ

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

別のキーワード

  1. _builtin file?
  2. _builtin file
  3. file path
  4. file open
  5. file size

検索結果

Class#superclass -> Class | nil (22.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...