種類
- インスタンスメソッド (544)
- 特異メソッド (180)
- 文書 (47)
- 定数 (24)
- 関数 (22)
ライブラリ
クラス
-
ARGF
. class (12) - CSV (12)
-
CSV
:: Row (36) - DateTime (96)
-
Encoding
:: Converter (36) - Enumerator (24)
-
Enumerator
:: Lazy (12) -
Fiddle
:: Pointer (48) - IO (160)
- MatchData (30)
-
Net
:: FTP (48) - Pathname (24)
-
Psych
:: SyntaxError (12) - Regexp (24)
- Socket (12)
- String (6)
- StringIO (12)
- Struct (12)
- Time (84)
-
WIN32OLE
_ METHOD (12)
モジュール
- Enumerable (24)
-
Socket
:: Constants (12)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) -
IPV6
_ CHECKSUM (24) -
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 3
. 1 . 0 (4) - [] (36)
- []= (48)
-
_ strptime (12) - advise (12)
- binread (12)
- binwrite (24)
- byteindex (3)
- byteoffset (6)
- byterindex (3)
- civil (12)
- commercial (12)
-
copy
_ stream (24) - delete (12)
-
each
_ with _ index (24) - getlocal (24)
-
gmt
_ offset (12) - gmtoff (12)
- jd (12)
- localtime (24)
- match (24)
- new (12)
-
new
_ offset (12) -
offset
_ vtbl (12) - ordinal (12)
- pread (8)
-
primitive
_ convert (36) - pwrite (8)
-
rb
_ ary _ entry (12) -
rb
_ time _ timespec _ new (10) - read (36)
- retrbinary (24)
-
ruby 1
. 9 feature (12) - seek (48)
- storbinary (24)
- sysseek (12)
-
utc
_ offset (12) -
with
_ index (36) - write (36)
検索結果
先頭5件
-
IO
. read(path , length = nil , **opt) -> String | nil (29.0) -
path で指定されたファイルを offset 位置から length バイト分読み込んで返します。
...path で指定されたファイルを offset 位置から
length バイト分読み込んで返します。
既に EOF に達している場合は nil を返します。ただし、length に nil か 0 が指定されている場合は、空文字列 "" を返します。例えば、IO.read(空......込みます。
@param offset 読み込みを始めるオフセットを整数で指定します。
@param opt ファイル path を open する時に使われるオプションをキーワード引数で指定します。
@raise Errno::EXXX path のオープン、offset 位置への設定、フ... -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (24.0) -
1.6.8から1.8.0への変更点(まとめ) * ((<1.6.8から1.8.0への変更点(まとめ)/インタプリタの変更>)) * ((<1.6.8から1.8.0への変更点(まとめ)/追加されたクラス/モジュール>)) * ((<1.6.8から1.8.0への変更点(まとめ)/追加されたメソッド>)) * ((<1.6.8から1.8.0への変更点(まとめ)/追加された定数>)) * ((<1.6.8から1.8.0への変更点(まとめ)/拡張されたクラス/メソッド(互換性のある変更)>)) * ((<1.6.8から1.8.0への変更点(まとめ)/変更されたクラス/メソッド(互換性のない変更)>)) * ((<1.6.8から1.8.0への変更点(まとめ)/文法の変更>)) * ((<1.6.8から1.8.0への変更点(まとめ)/正規表現>)) * ((<1.6.8から1.8.0への変更点(まとめ)/Marshal>)) * ((<1.6.8から1.8.0への変更点(まとめ)/Windows 対応>)) * ((<1.6.8から1.8.0への変更点(まとめ)/廃止された(される予定の)機能>)) * ((<1.6.8から1.8.0への変更点(まとめ)/ライブラリ>)) * ((<1.6.8から1.8.0への変更点(まとめ)/拡張ライブラリAPI>)) * ((<1.6.8から1.8.0への変更点(まとめ)/バグ修正>)) * ((<1.6.8から1.8.0への変更点(まとめ)/サポートプラットフォームの追加>))
...local|Time/getlocal>)) [new]
: ((<Time#getutc|Time/getutc>)) [new]
: ((<Time#gmt_offset|Time/gmt_offset>)) [new]
: ((<Time#gmtoff|Time/gmtoff>)) [new]
: ((<Time#utc_offset|Time/utc_offset>)) [new]
追加
=== その他
: ((<Array#values_at|Array/values_at>)) [new]
: ((<Hash#v... -
IO
. write(path , string , **opts) -> Integer (19.0) -
path で指定されるファイルを開き、string を書き込み、 閉じます。
...ならば、"|" に続くコマンドを実行し、コマンドの出力を標準出力に書き込みます。
offset を指定するとその位置までシークします。
offset を指定しないと、書き込みの末尾でファイルを
切り捨てます。
キーワード引数は......ができます。
詳しくは IO.open を見てください。
@param path ファイル名文字列
@param string 書き込む文字列
@param offset 書き込み開始位置
@param opts ファイルを開くときのキーワード引数
//emlist[例][ruby]{
text = "This is line one\nThis is li... -
NEWS for Ruby 3
. 1 . 0 (18.0) -
NEWS for Ruby 3.1.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...ck と String#unpack1 が任意のバイト数をスキップした後にアンパックを開始するための offset: キーワード引数を渡せるようになりました。 offset が文字列の範囲外の場合、 ArgumentError 例外が発生します。 18254
* Thread
* 新規......返されました。 2021-12-25 07:30:00 や 2021-12-25 00:00:00 +07:30 でもありません。
* Time#strftime がRFC 3339 UTCのunknown offset local timeに対応しました。 -0000 を \%-z としてサポートします。 17544
* TracePoint
* 新規メソッド
* TracePo... -
Socket
:: Constants :: IPV6 _ CHECKSUM -> Integer (16.0) -
Byte offset into a packet where the checksum is located. BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。
...Byte offset into a packet where the checksum is located.
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。
@see Socket::Constants::IPPROTO_IPV6,
ip6(4freebsd),
3542... -
Socket
:: IPV6 _ CHECKSUM -> Integer (16.0) -
Byte offset into a packet where the checksum is located. BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。
...Byte offset into a packet where the checksum is located.
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。
@see Socket::Constants::IPPROTO_IPV6,
ip6(4freebsd),
3542... -
IO
. copy _ stream(src , dst , copy _ length = nil) -> Integer (13.0) -
指定された src から dst へコピーします。 コピーしたバイト数を返します。
...ルは作成されます。ファイルが存在する場合は長さ 0 に切り詰められます。
src が IO オブジェクトでかつ src_offset が指定されている場合、
src のオフセット(src.pos)は変更されません。
@param src コピー元となる IO オブジェク......ngth までコピーされます。
nil を指定した場合、コピーする長さに制限はありません。
@param src_offset コピーを始めるオフセットを数値で指定します。
//emlist[例][ruby]{
IO.write("filetest", "abcdefghij")
IO.copy_stream("filet... -
NEWS for Ruby 2
. 2 . 0 (12.0) -
NEWS for Ruby 2.2.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...さい。
* time
* Time.parse, Time.strptime, Time.rfc2822, Time.xmlschema may produce
fixed-offset Time objects.
It is happen when usual localtime doesn't preserve the offset from UTC.
* Time.httpdate は常にUTCのTimeオブジェクトを生成します。
* Time.strpt... -
CSV
:: Row # []=(header _ or _ index , value) (8.0) -
ヘッダの名前かインデックスでフィールドを探し、値をセットします。
...2"], ["row1_1", "row1_2"])
row["header1"] # => "row1_1"
row[0] = "updated"
row["header1"] # => "updated"
//}
//emlist[例 ヘッダの名前と offset で指定][ruby]{
require "csv"
row = CSV::Row.new(["header1", "header2", "header1"], ["row1_1", "row1_2", "row1_3"])
row # => #<CSV::Row "hea... -
Time
# getlocal -> Time (7.0) -
タイムゾーンを地方時に設定した Time オブジェクトを新しく生成 して返します。
...タイムゾーンを地方時に設定した Time オブジェクトを新しく生成
して返します。
@param utc_offset タイムゾーンを地方時に設定する代わりに協定世界時との
時差を、秒を単位とする整数か、"+HH:MM" "-HH:MM" 形式...