種類
- 関数 (36)
- 文書 (29)
- インスタンスメソッド (24)
- 定数 (12)
ライブラリ
- ビルトイン (12)
- etc (12)
-
rexml
/ document (12)
クラス
- Module (12)
-
REXML
:: Attribute (12)
モジュール
- Etc (12)
キーワード
-
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) -
SC
_ READER _ WRITER _ LOCKS (12) -
attr
_ writer (12) -
rb
_ attr (12) -
rb
_ define _ attr (12) -
rb
_ mod _ attr _ writer (12) -
ruby 1
. 6 feature (12)
検索結果
先頭5件
-
REXML
:: Attribute # write(output , indent = -1) -> object (21101.0) -
output に self の情報を name='value' という形式で書き込みます。
output に self の情報を name='value' という形式で書き込みます。
output が返ります。
@param output 書き込み先の IO オブジェクト
@param indent インデントレベル、ここでは無視される -
Module
# attr _ writer(*name) -> [Symbol] (12213.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 (12201.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) (12200.0) -
-
void rb
_ define _ attr(VALUE klass , const char *name , int read , int write) (6216.0) -
クラス klass にメソッド name と name= を定義します。 read が真のときは name を定義し、 write が真のときは name= を定義します。
...クラス klass にメソッド name と name= を定義します。
read が真のときは name を定義し、
write が真のときは name= を定義します。... -
void rb
_ attr(VALUE klass , ID id , int read , int write , int ex) (6200.0) -
-
Etc
:: SC _ READER _ WRITER _ LOCKS -> Integer (3102.0) -
Etc.#sysconf の引数に指定します。
Etc.#sysconf の引数に指定します。
詳細は sysconf(3) を参照してください。 -
NEWS for Ruby 2
. 5 . 0 (48.0) -
NEWS for Ruby 2.5.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...使えない場合は他の実装へフォールバックするようにしました 13867
* IO#pread を追加 4532
* IO#pwrite を追加 4532
* IO#write 複数の引数を受け取れるようになりました 9323
* IOError
* IO#close 以前は"stream closed"というメッセ......Method
* Method#=== は Proc#===と同じようにMethod#callを呼び出します 14142
* Module
* Module#attr, Module#attr_accessor, Module#attr_reader, Module#attr_writer はパブリックメソッドになりました 14132
* Module#define_method, Module#alias_method, Module#unde......pect の別名として追加 13676
* Set#=== を Set#include? の別名として追加 13801
* Set#reset 6589
* stringio
* StringIO#write は複数の引数を受け取れるようになりました
* strscan
* StringScanner#size, StringScanner#captures, StringScanner#values_a... -
NEWS for Ruby 3
. 0 . 0 (36.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...e given keys and their values. 15822
* IO
* IO#nonblock? now defaults to `true`. 16786
* IO#wait_readable, IO#wait_writable, IO#read, IO#write and other related methods (e.g. IO#puts, IO#gets) may invoke the scheduler hook `#io_wait(io, events, timeout)` in a non-blocking execution contex......vel "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 and Module#attr methods now return an array of defined method names as symbols. 17314
* Module#alias_method now returns the de......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
* Performance improvements of JIT-ed code
* Microarchitectural optimizations
* Native functions shared by multip... -
ruby 1
. 6 feature (36.0) -
ruby 1.6 feature ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン になります。
...イプの dup を close_write するとエラーになっていました。
((<ruby-dev:17155>))
open("|-","r+") {|f|
if f
f.dup.close_write
else
sleep 1
end
}
=> ruby 1.6.7 (2002-03-01) [i586-linux]
-:3:in `close_write': closing non-duplex I......2002-03-01) [i586-linux]
"\302\200"
[0]
=> ruby 1.6.7 (2002-05-04) [i586-linux]
"\302\200"
[128]
: 2002-04-11: IO#write
ソケットやパイプに対する EPIPE の検出に失敗することがありました。
((<ruby-dev:16849>))
: 2002-04-11: ((<"cgi/se......ことがありました。((<ruby-dev:13752>))
: attr_*
アクセサに余計な引数を渡してもエラーになりませんでした。
((<ruby-dev:13748>))
class C
def initialize
@message = 'ok'
end
attr_reader :message
end
puts C.new.message(1,2,3... -
NEWS for Ruby 3
. 1 . 0 (24.0) -
NEWS for Ruby 3.1.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...た。 17470
* 新しいSchedulerのフックのio_readとio_writeが導入され、zero-copy read/writeのための低レベルのIO::Bufferが導入されました。 18020
* IOフックのio_wait、io_read、io_writeは、可能ならばオリジナルのIOオブジェクトを受け......[String]` is ok, but `PrettyPrint[Integer]` is a type error.
class PrettyPrint[T < _Output]
interface _Output
def <<: (String) -> void
end
attr_reader output: T
def initialize: (T output) -> void
end
//}
* ジェネリックな型エイリアスが定義できるようになりま...