種類
- インスタンスメソッド (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)
検索結果
-
Struct
# [](member) -> object (6.0) -
構造体のメンバの値を返します。
...# => "BAR"
p obj[-1] # => "BAR" # Array のように負のインデックスも指定できます。
p obj[2] # => in `[]': offset 2 too large for struct(size:2) (IndexError)
//}
[注意] 本メソッドの記述は Struct の下位クラスのインスタンスに対して... -
ruby 1
. 9 feature (6.0) -
ruby 1.9 feature ruby version 1.9.0 は開発版です。 以下にあげる機能は将来削除されたり互換性のない仕様変更がなされるかもしれません。 1.9.1 以降は安定版です。 バグ修正がメインになります。
...2004-07-17) [i586-linux]
["a"]
マッチ位置は文字列の先頭から数えられます。
p(/(.)/.match("foobar", 4).offset(0))
# => ruby 1.9.0 (2004-07-17) [i586-linux]
[4, 5]
=== 2004-07-16
: File::Stat#dev_major [new]
: File::Stat#dev_minor [ne...