37件ヒット
[1-37件を表示]
(0.104秒)
別のキーワード
種類
- インスタンスメソッド (22)
- 関数 (11)
- 文書 (4)
ライブラリ
- ビルトイン (11)
クラス
- Module (11)
-
RDoc
:: Options (11)
キーワード
-
NEWS for Ruby 3
. 0 . 0 (4) -
extra
_ accessor _ flags (11) -
rb
_ mod _ attr _ writer (11)
検索結果
先頭5件
-
Module
# attr _ writer(*name) -> [Symbol] (30326.0) -
インスタンス変数 name への書き込みメソッド (name=) を定義します。
...義します。
//emlist[例][ruby]{
class User
attr_writer :name # => [:name=]
# 複数の名前を渡すこともできる
attr_writer :id, :age # => [:id=, :age=]
end
//}
このメソッドで定義されるメソッドの定義は以下の通りです。
//emlist[例][ruby]{
def name=(v......al)
@name = val
end
//}
@param name String または Symbol を 1 つ以上指定します。
@return 定義されたメソッド名を Symbol の配列で返します。... -
Module
# attr _ writer(*name) -> nil (30302.0) -
インスタンス変数 name への書き込みメソッド (name=) を定義します。
...タンス変数 name への書き込みメソッド (name=) を定義します。
このメソッドで定義されるメソッドの定義は以下の通りです。
//emlist[例][ruby]{
def name=(val)
@name = val
end
//}
@param name String または Symbol を 1 つ以上指定します。... -
static VALUE rb
_ mod _ attr _ writer(int argc , VALUE *argv , VALUE klass) (18300.0) -
-
RDoc
:: Options # extra _ accessor _ flags -> {String => String} (3212.0) -
コマンドライン引数の --accessor オプションで指定したアクセサがキー、ア クセサの種類が値のハッシュを返します。
...コマンドライン引数の --accessor オプションで指定したアクセサがキー、ア
クセサの種類が値のハッシュを返します。
値は r、w、rw のいずれかです。それぞれ attr_reader、attr_writer、
attr_accessor に対応します。... -
NEWS for Ruby 3
. 0 . 0 (24.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......at in a method call has been reduced to a maximum of 1, and passing a keyword splat to a method that accepts specific keywords does not allocate a hash.
* `super` is optimized when the same type of method is called in the previous call if it's not refinements or an attr reader or writer.
=== JIT...