221件ヒット
[1-100件を表示]
(0.099秒)
種類
- インスタンスメソッド (89)
- 文書 (84)
- 関数 (24)
- 特異メソッド (24)
ライブラリ
- ビルトイン (59)
- delegate (12)
- e2mmap (6)
-
rdoc
/ context (24) -
rdoc
/ top _ level (12)
クラス
- Class (36)
- Method (11)
- Module (12)
-
RDoc
:: Context (24) -
RDoc
:: TopLevel (12)
モジュール
- Exception2MessageMapper (6)
- Kernel (12)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - DelegateClass (12)
- Ruby用語集 (12)
-
add
_ class (12) -
add
_ class _ or _ module (24) - ancestors (12)
-
def
_ exception (6) - new (24)
-
rb
_ class _ superclass (12) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
super
_ method (11) - クラス/メソッドの定義 (12)
検索結果
先頭5件
- static VALUE superclass(VALUE self
, NODE *node) - static VALUE rb
_ class _ superclass(VALUE klass) - Class
# superclass -> Class | nil - RDoc
:: Context # add _ class _ or _ module(collection , class _ type , name , superclass = nil) -> RDoc :: NormalClass | RDoc :: SingleClass | RDoc :: NormalModule - RDoc
:: TopLevel # add _ class _ or _ module(collection , class _ type , name , superclass) -> RDoc :: NormalClass | RDoc :: SingleClass | RDoc :: NormalModule
-
static VALUE superclass(VALUE self
, NODE *node) (44200.0) -
クラス文のスーパークラスを表すノード node を 評価してクラスを得ます。
クラス文のスーパークラスを表すノード node を
評価してクラスを得ます。 -
static VALUE rb
_ class _ superclass(VALUE klass) (32200.0) -
-
Class
# superclass -> Class | nil (24237.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 #... -
RDoc
:: Context # add _ class _ or _ module(collection , class _ type , name , superclass = nil) -> RDoc :: NormalClass | RDoc :: SingleClass | RDoc :: NormalModule (6207.0) -
collection に name で指定したクラス、モジュールを追加します。
...加します。
@param collection クラス、モジュールを追加する先を Hash オブジェ
クトで指定します。
@param class_type 追加するクラス、モジュールを RDoc::NormalClass、
RDoc::SingleClass、RDoc::NormalModule オ......ブジェクトのいずれかで指定します。
@param name クラス名を文字列で指定します。
@param superclass 追加するクラスの親クラスを RDoc::NormalClass オ
ブジェクトで指定します。
既に登録済みであった場合は、......引数で指定した情報で内容を更新します。ただ
し、RDoc::CodeObject#done_documenting が true を返す場合、何も行
われません。... -
RDoc
:: TopLevel # add _ class _ or _ module(collection , class _ type , name , superclass) -> RDoc :: NormalClass | RDoc :: SingleClass | RDoc :: NormalModule (6207.0) -
collection に name で指定したクラス、モジュールを追加します。
...加します。
@param collection クラス、モジュールを追加する先を Hash オブジェ
クトで指定します。
@param class_type 追加するクラス、モジュールを RDoc::NormalClass、
RDoc::SingleClass、RDoc::NormalModule オ......ブジェクトのいずれかで指定します。
@param name クラス名を文字列で指定します。
@param superclass 追加するクラスの親クラスを RDoc::NormalClass オ
ブジェクトで指定します。
既に登録済みであった場合は、......引数で指定した情報で内容を更新します。ただ
し、RDoc::CodeObject#done_documenting が true を返す場合、何も行
われません。... -
Method
# super _ method -> Method | nil (6112.0) -
self 内で super を実行した際に実行されるメソッドを Method オブジェ クトにして返します。
...self 内で super を実行した際に実行されるメソッドを Method オブジェ
クトにして返します。
@see UnboundMethod#super_method
//emlist[例][ruby]{
class Super
def foo
"superclass method"
end
end
class Sub < Super
def foo
"subclass method"
end
end
m = S......ub.new.method(:foo) # => #<Method: Sub#foo>
m.call # => "subclass method"
m.super_method # => #<Method: Super#foo>
m.super_method.call # => "superclass method"
//}... -
Module
# ancestors -> [Class , Module] (6106.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#included_modules... -
Ruby用語集 (6058.0)
-
Ruby用語集 A B C D E F G I J M N O R S Y
...Ruby用語集
A B C D E F G I J M N O R S Y
a ka sa ta na ha ma ya ra wa
=== 記号・数字
: %記法
: % notation
「%」記号で始まる多種多様なリテラル記法の総称。
参照:d:spec/literal#percent
: 0 オリジン
: zero-ba......sed
番号が 0 から始まること。
例えば、
Array や Vector、Matrix などの要素の番号、
String における文字の位置、
といったものは 0 オリジンである。
: 1 オリジン
: one-based
番号が 1 から始まること。
例えば、
エラ......。
true/false を返すとは限らず、真である場合に、true 以外のオブジェクトを
返すことで、単なる真偽を越えた情報を与えるものもある。
: 上位クラス
: superclass
=スーパークラス
: 条件演算子
: conditional operator
条件... -
Kernel
# DelegateClass(superclass) -> object (3223.0) -
クラス superclass のインスタンスへメソッドを委譲するクラスを定義し、 そのクラスを返します。
...ス superclass のインスタンスへメソッドを委譲するクラスを定義し、
そのクラスを返します。
@param superclass 委譲先となるクラス
例:
//emlist{
require 'delegate'
class ExtArray < DelegateClass(Array)
def initialize
super([])
end
end
a = ExtArray.......new
p a.class # => ExtArray
a.push 25
p a # => [25]
//}...