るりまサーチ

最速Rubyリファレンスマニュアル検索!
18件ヒット [1-18件を表示] (0.110秒)
トップページ > クエリ:i[x] > クエリ:b[x] > クエリ:attr_writer[x]

別のキーワード

  1. _builtin b
  2. string b
  3. b string
  4. b _builtin
  5. b

ライブラリ

クラス

キーワード

検索結果

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...