18件ヒット
[1-18件を表示]
(0.110秒)
別のキーワード
種類
- 関数 (11)
- 文書 (4)
- インスタンスメソッド (3)
ライブラリ
- ビルトイン (3)
クラス
- Module (3)
キーワード
-
NEWS for Ruby 3
. 0 . 0 (4) -
rb
_ mod _ attr _ writer (11)
検索結果
先頭3件
-
Module
# attr _ writer(*name) -> [Symbol] (24313.0) -
インスタンス変数 name への書き込みメソッド (name=) を定義します。
...します。
//emlist[例][ruby]{
class User
attr_writer :name # => [:name=]
# 複数の名前を渡すこともできる
attr_writer :id, :age # => [:id=, :age=]
end
//}
このメソッドで定義されるメソッドの定義は以下の通りです。
//emlist[例][ruby]{
def name=(val)......@name = val
end
//}
@param name String または Symbol を 1 つ以上指定します。
@return 定義されたメソッド名を Symbol の配列で返します。... -
static VALUE rb
_ mod _ attr _ writer(int argc , VALUE *argv , VALUE klass) (18300.0) -
-
NEWS for Ruby 3
. 0 . 0 (3042.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...NEWS for Ruby 3.0.0
このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
それぞれのエントリーは参照情報があるため短いです。
十分な情報と共に書かれた全ての変更のリス......positional arguments.
Code that resulted in deprecation warnings in Ruby 2.7 will now
result in ArgumentError or different behavior. 14183
* Procs accepting a single rest argument and keywords are no longer
subject to autosplatting. This now matches the behavior of Procs
accepting......ceiver. 9573
* Module#public, Module#protected, Module#private, Module#public_class_method, Module#private_class_method, toplevel "private" and "public" methods now accept single array argument with a list of method names. 17314
* Module#attr_accessor, Module#attr_reader, Module#attr_writer...