22件ヒット
[1-22件を表示]
(0.216秒)
別のキーワード
検索結果
-
クラス/メソッドの定義 (15037.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
* d......[10, 20, 2, 3, 30]
p foo(10, 20, 30, 40) #=> [10, 20, 30, 3, 40]
p foo(10, 20, 30, 40, 50) #=> [10, 20, 30, 40, 50]
# NG: 次の定義は SyntaxError になる
# def foo(x = 1, y, z = 2)
# end
//}
デフォルト式の評価は呼び出し時にメソッド定義内のコンテキストで... -
ruby 1
. 6 feature (12.0) -
ruby 1.6 feature ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン になります。
...がありました。
((<ruby-list:34478>))
#! ruby -Ks
p a = "#{"表"}"
=> -:1: compile error in string expansion (SyntaxError)
-:1: unterminated string meets end of file
ruby 1.6.7 (2002-03-15) [i586-linux]
=> ruby 1.6.7 (2002-03-19) [i586-l......p Marshal.dump(Object.new).unpack("CC").join(".")
=> ruby 1.6.4 (2001-06-11) [i586-linux]
"4.6"
: $SAFE / ((<クラス/メソッドの定義/def>))
doc/NEWS には
Fixed so defining a new method is allowed under $SAFE == 4, which
previously wasn't.
とある...