4件ヒット
[1-4件を表示]
(0.123秒)
別のキーワード
種類
- クラス (1)
- 文書 (1)
- 関数 (1)
- インスタンスメソッド (1)
ライブラリ
- ビルトイン (2)
クラス
- Module (1)
キーワード
- Location (1)
-
rb
_ mod _ attr _ accessor (1) - クラス/メソッドの定義 (1)
検索結果
先頭4件
-
Module
# attr _ accessor(*name) -> nil (54904.0) -
インスタンス変数 name に対する読み取りメソッドと書き込みメソッドの両方を 定義します。
インスタンス変数 name に対する読み取りメソッドと書き込みメソッドの両方を
定義します。
このメソッドで定義されるメソッドの定義は以下の通りです。
//emlist[例][ruby]{
def name
@name
end
def name=(val)
@name = val
end
//}
@param name String または Symbol を 1 つ以上指定します。 -
static VALUE rb
_ mod _ attr _ accessor(int argc , VALUE *argv , VALUE klass) (18901.0) -
-
Thread
:: Backtrace :: Location (18037.0) -
Ruby のフレームを表すクラスです。
Ruby のフレームを表すクラスです。
Kernel.#caller_locations から生成されます。
//emlist[例1][ruby]{
# caller_locations.rb
def a(skip)
caller_locations(skip)
end
def b(skip)
a(skip)
end
def c(skip)
b(skip)
end
c(0..2).map do |call|
puts call.to_s
end
//}
例1の実行結果:
caller_locations.rb:2:in `a'
caller_locations... -
クラス/メソッドの定義 (1603.0)
-
クラス/メソッドの定義 * クラス/メソッドの定義: * class * singleton_class * module * method * operator * nest_method * eval_method * singleton_method * class_method * limit * 定義に関する操作: * alias * undef * defined
クラス/メソッドの定義
* クラス/メソッドの定義:
* class
* singleton_class
* module
* method
* operator
* nest_method
* eval_method
* singleton_method
* class_method
* limit
* 定義に関する操作:
* alias
* undef
* defined
===[a:class] クラス定義
//emlist[例][ruby]{
class Foo < S...