るりまサーチ

最速Rubyリファレンスマニュアル検索!
159件ヒット [101-159件を表示] (0.020秒)
トップページ > クエリ:end[x] > クエリ:superclass[x]

別のキーワード

  1. _builtin end
  2. ripper end_seen?
  3. _builtin exclude_end?
  4. _builtin end_with?
  5. io seek_end

検索結果

<< < 1 2 >>

ruby 1.8.4 feature (66.0)

ruby 1.8.4 feature ruby 1.8.4 での ruby 1.8.3 からの変更点です。

...適合する文字列を厳密にした。((<ruby-core:03573>)),((<ruby-dev:27478>))

1) alias :"foo" :"bar"

def bar; p "bar"; end
alias :"foo" :"bar"
foo

# => ruby 1.8.4 (2005-12-22) [i686-linux]
-:2: syntax error, unexpecte...
..."$- "
2631438

# => ruby 1.8.4 (2005-12-22) [i686-linux]
-:2: syntax error, unexpected '(', expecting $end

#Tue Nov 1 14:20:11 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
#
# * eval.c (rb_call_super): should call method_missing if super is
#...
...]

Kernelのメソッド内でsuperを呼んだ時に、存在しないsuperclass
にアクセスしようとするバグの修正。

module Kernel
def foo
super
end

end


foo

# => ruby 1.8.3 (2005-09-21) [i686-linux]...

ruby 1.8.2 feature (48.0)

ruby 1.8.2 feature ruby 1.8.2 での ruby 1.8.1 からの変更点です。

...]
セッションを保存するファイル名にセッション ID が使われるバグを修正しました。

=== 2004-08-23
: OpenSSL::SSL#pending [lib] [new]

=== 2004-08-14
: FileUtils.copy_entry [lib] [new]
: FileUtils::DryRun [lib] [new]
追加。
: FileUtils.mv [lib] [compat]
mv...
...いるバグを修正しました。((<ruby-dev:23690>))

$ ruby1.8.1 -e 'class X;end; x=X.new; class << x;p self < X; end'
true

$ ruby1.8.2 -e 'class X;end; x=X.new; class << x;p self < X; end'
nil

=== 2004-06-04

: IO#gets, $_ [ruby] [change]
gets の返り値が nil で...
...5-10
: superclass mismatch [ruby] [change]
親クラスの違う同じ名前のクラスを再定義した時 TypeError を投げるようになりました。
((<ruby-list:39567>))

$ ruby-1.8.2 -e '
class Foo
Bar = 1
end


class Foo < String
Baz = 2
end
...

Method#super_method -> Method | nil (36.0)

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

...][ruby]{
class Super
def foo
"superclass method"
end

end


class Sub < Super
def foo
"subclass method"
end

end


m = Sub.new.method(:foo) # => #<Method: Sub#foo>
m.call # => "subclass method"
m.super_method # => #<Method: Super#foo>
m.super_method.call # => "superclass method"
//}...

Ruby用語集 (36.0)

Ruby用語集 A B C D E F G I J M N O R S Y

...た静的型付け言語であり、処理系はコンパイラーである。

https://ja.crystal-lang.org/

: CSI 方式
CSI は Code Set Independent の頭字語。
プログラミング言語の処理系が文字列を扱う際のエンコーディングに関する方針の一つ。
...
...序関係を表す
演算子 <=> の俗称。

: 埋め込みドキュメント
: embedded document
ソースコード中の =begin 行から =end 行まで。コメントとみなされ実行されない。

その名の通り、この部分にコードのドキュメントを記述するこ...
...、true 以外のオブジェクトを
返すことで、単なる真偽を越えた情報を与えるものもある。

: 上位クラス
: superclass
=スーパークラス

: 条件演算子
: conditional operator
条件式・真式・偽式の三つの項を取り、条件式の値が...

Class#subclasses -> [Class] (30.0)

自身が直接のスーパークラスになっている(特異クラスを除く)クラスの配列を返します。 返り値の配列の順序は未定義です。

...を除く)クラスの配列を返します。
返り値の配列の順序は未定義です。

//emlist[例][ruby]{
class A; end
class B < A; end
class C < B; end
class D < A; end

A.subclasses # => [D, B]
B.subclasses # => [C]
C.subclasses # => []
//}

@see Class#superclass...

絞り込み条件を変える

Module#ancestors -> [Class, Module] (24.0)

クラス、モジュールのスーパークラスとインクルードしているモジュール を優先順位順に配列に格納して返します。

...ール
を優先順位順に配列に格納して返します。

//emlist[例][ruby]{
module Foo
end

class Bar
include Foo
end

class Baz < Bar
p ancestors
p included_modules
p superclass
end

# => [Baz, Bar, Foo, Object, Kernel, BasicObject]
# => [Foo, Kernel]
# => Bar
//}

@see Module#inclu...
<< < 1 2 >>