55件ヒット
[1-55件を表示]
(0.029秒)
トップページ > :attr_writer
種類
- インスタンスメソッド (22)
- 文書 (11)
- ライブラリ (11)
- 関数 (11)
ライブラリ
- ビルトイン (11)
クラス
- Module (11)
-
RDoc
:: Options (11)
キーワード
-
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 3
. 0 . 0 (4) -
extra
_ accessor _ flags (11) -
rb
_ mod _ attr _ writer (11) -
rdoc
/ parser / ruby (11)
検索結果
先頭5件
-
Module
# attr _ writer(*name) -> [Symbol] (18113.0) -
インスタンス変数 name への書き込みメソッド (name=) を定義します。
...数 name への書き込みメソッド (name=) を定義します。
//emlist[例][ruby]{
class User
attr_writer :name # => [:name=]
# 複数の名前を渡すこともできる
attr_writer :id, :age # => [:id=, :age=]
end
//}
このメソッドで定義されるメソッドの定義は以... -
Module
# attr _ writer(*name) -> nil (18101.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) (6100.0) -
-
rdoc
/ parser / ruby (12.0) -
Ruby のソースコードを解析するためのサブライブラリです。
...を指定する事もできます。
##
# :singleton-method: woo_hoo!
また、属性についても同様に :attr:、 :attr_reader:、 :attr_writer:、
:attr_accessor: を指定する事ができます。属性の名前は省略できます。
##
# :attr_reader: my_attr_name
=== 隠し......:attr: 命令を使う事で実際には定義され
ていないメソッドもドキュメントに含める事ができます。
##
# :attr_writer: ghost_writer
# There is an attribute here, but you can't see it!
##
# :method: ghost_method
# There is a method here, but you can't se... -
NEWS for Ruby 2
. 5 . 0 (6.0) -
NEWS for Ruby 2.5.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...Proc#===と同じようにMethod#callを呼び出します 14142
* Module
* Module#attr, Module#attr_accessor, Module#attr_reader, Module#attr_writer はパブリックメソッドになりました 14132
* Module#define_method, Module#alias_method, Module#undef_method, Module#remove_meth... -
NEWS for Ruby 3
. 0 . 0 (6.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...and "public" methods now accept single array argument with a list of method names. 17314
* Module#attr_accessor, Module#attr_reader, Module#attr_writer and Module#attr methods now return an array of defined method names as symbols. 17314
* Module#alias_method now returns the defined alias a... -
RDoc
:: Options # extra _ accessor _ flags -> {String => String} (6.0) -
コマンドライン引数の --accessor オプションで指定したアクセサがキー、ア クセサの種類が値のハッシュを返します。
...コマンドライン引数の --accessor オプションで指定したアクセサがキー、ア
クセサの種類が値のハッシュを返します。
値は r、w、rw のいずれかです。それぞれ attr_reader、attr_writer、
attr_accessor に対応します。...