570件ヒット
[1-100件を表示]
(0.102秒)
種類
- インスタンスメソッド (392)
- 特異メソッド (156)
- 関数 (22)
クラス
-
ARGF
. class (12) -
CSV
:: Row (36) - DateTime (72)
-
Encoding
:: Converter (36) -
Enumerator
:: Lazy (12) -
Fiddle
:: Pointer (48) - IO (116)
- MatchData (30)
-
Net
:: FTP (48) - Pathname (24)
- Regexp (24)
- String (6)
- Time (48)
-
WIN32OLE
_ METHOD (12)
モジュール
- Enumerable (24)
キーワード
- [] (24)
- []= (48)
- 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)
- jd (12)
- localtime (24)
- match (24)
- new (12)
-
offset
_ vtbl (12) - ordinal (12)
- pread (8)
-
primitive
_ convert (36) -
rb
_ ary _ entry (12) -
rb
_ time _ timespec _ new (10) - read (36)
- retrbinary (24)
- seek (12)
- storbinary (24)
-
with
_ index (12) - write (24)
検索結果
先頭5件
-
MatchData
# offset(name) -> [Integer , Integer] | [nil , nil] (18251.0) -
name という名前付きグループに対応する部分文字列のオフセットの配列 [start, end] を返 します。
...のオフセットの配列 [start, end] を返
します。
//emlist[例][ruby]{
[ self.begin(name), self.end(name) ]
//}
と同じです。nameの名前付きグループにマッチした部分文字列がなければ
[nil, nil] を返します。
@param name 名前(シンボルか文字列)......//emlist[例][ruby]{
/(?<year>\d{4})年(?<month>\d{1,2})月(?:(?<day>\d{1,2})日)?/ =~ "2021年1月"
p $~.offset('year') # => [0, 4]
p $~.offset(:year) # => [0, 4]
p $~.offset('month') # => [5, 6]
p $~.offset(:month) # => [5, 6]
p $~.offset('day') # => [nil, nil]
p $~.offset('centu......ry') # => `offset': undefined group name reference: century (IndexError)
//}
@see MatchData#begin, MatchData#end......ry') # => `offset': undefined group name reference: century (IndexError)
//}
@see MatchData#begin, MatchData#end, MatchData#offset... -
MatchData
# offset(n) -> [Integer , Integer] | [nil , nil] (18216.0) -
n 番目の部分文字列のオフセットの配列 [start, end] を返 します。
...部分文字列のオフセットの配列 [start, end] を返
します。
//emlist[例][ruby]{
[ self.begin(n), self.end(n) ]
//}
と同じです。n番目の部分文字列がマッチしていなければ
[nil, nil] を返します。
@param n 部分文字列を指定する数値
@raise Inde......xError 範囲外の n を指定した場合に発生します。
@see MatchData#begin, MatchData#end, MatchData#offset... -
DateTime
# offset -> Rational (18201.0) -
時差を返します。
時差を返します。 -
WIN32OLE
_ METHOD # offset _ vtbl -> Integer (12207.0) -
このメソッドのVTBLのオフセットを取得します。
...ッドのVTBLのオフセットを取得します。
VTBLはC++やCでメソッドを呼び出すために利用する関数ポインタのテーブルです。
@return メソッドのVTBL上のオフセットを返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'W......orkbooks')
method = WIN32OLE_METHOD.new(tobj, 'Add')
puts method.offset_vtbl # => 40... -
Time
# getlocal(utc _ offset) -> Time (6225.0) -
タイムゾーンを地方時に設定した Time オブジェクトを新しく生成 して返します。
...して返します。
@param utc_offset タイムゾーンを地方時に設定する代わりに協定世界時との
時差を、秒を単位とする整数か、"+HH:MM" "-HH:MM" 形式
の文字列で指定します。
//emlist[][ruby]{
p t = Time.utc(2000,1......# => true
p l = t.getlocal # => 2000-01-02 05:15:01 +0900
p l.utc? # => false
p t == l # => true
p j = t.getlocal("+09:00") # => 2000-01-02 05:15:01 +0900
p j.utc? # => false
p t == j... -
MatchData
# byteoffset(name) -> [Integer , Integer] | [nil , nil] (6213.0) -
name という名前付きグループに対応する部分文字列のバイト単位のオフセットの 配列 [start, end] を返します。
...l, nil] を返します。
@param name 名前(シンボルか文字列)
@raise IndexError 正規表現中で定義されていない name を指定した場合に発生します。
//emlist[例][ruby]{
/(?<year>\d{4})年(?<month>\d{1,2})月(?:(?<day>\d{1,2})日)?/ =~ "2021年1月"
p $~.byteoffset......') # => [0, 4]
p $~.byteoffset(:year) # => [0, 4]
p $~.byteoffset('month') # => [7, 8]
p $~.byteoffset(:month) # => [7, 8]
p $~.byteoffset('day') # => [nil, nil]
p $~.byteoffset('century') # => `offset': undefined group name reference: century (IndexError)
//}
@see MatchData#offset... -
DateTime
. civil(year = -4712 , mon = 1 , mday = 1 , hour = 0 , min = 0 , sec = 0 , offset = 0 , start = Date :: ITALY) -> DateTime (6208.0) -
暦日付に相当する日時オブジェクトを生成します。
...な時差をあらわす文字列もつかえます。
@param year 年
@param mon 月
@param mday 日
@param hour 時
@param min 分
@param sec 秒
@param offset 時差
@param start グレゴリオ暦をつかい始めた日をあらわすユリウス日
@raise ArgumentError 正しくない日時... -
MatchData
# byteoffset(n) -> [Integer , Integer] | [nil , nil] (6208.0) -
n 番目の部分文字列のバイト単位のオフセットの 配列 [start, end] を返します。
...のオフセットの
配列 [start, end] を返します。
n番目の部分文字列がマッチしていなければ [nil, nil] を返します。
@param n 部分文字列を指定する数値
@raise IndexError 範囲外の n を指定した場合に発生します。
@see MatchData#offset... -
DateTime
. commercial(cwyear = -4712 , cweek = 1 , cwday = 1 , hour = 0 , min = 0 , sec = 0 , offset = 0 , start = Date :: ITALY) -> DateTime (6207.0) -
暦週日付に相当する日時オブジェクトを生成します。
...new も参照してください。
@param cwyear 年
@param cweek 週
@param cwday 週の日 (曜日)
@param hour 時
@param min 分
@param sec 秒
@param offset 時差
@param start グレゴリオ暦をつかい始めた日をあらわすユリウス日
@raise ArgumentError 正しくない日時... -
DateTime
. ordinal(year = -4712 , yday = 1 , hour = 0 , min = 0 , sec = 0 , offset = 0 , start = Date :: ITALY) -> DateTime (6207.0) -
年日付に相当する日時オブジェクトを生成します。
...生成します。
DateTime.new も参照してください。
@param year 年
@param yday 年の日
@param hour 時
@param min 分
@param sec 秒
@param offset 時差
@param start グレゴリオ暦をつかい始めた日をあらわすユリウス日
@raise ArgumentError 正しくない日時...