るりまサーチ

最速Rubyリファレンスマニュアル検索!
775件ヒット [701-775件を表示] (0.124秒)

別のキーワード

  1. etc group
  2. openssl group
  3. socket ipv6_join_group
  4. socket mcast_join_group
  5. socket ipv6_leave_group

ライブラリ

モジュール

キーワード

検索結果

<< < ... 6 7 8 >>

Hash#invert -> Hash (7.0)

値からキーへのハッシュを作成して返します。

...備えて、変換後の値を配列として保持するには、次のようにします。

//emlist[][ruby]{
def safe_invert(orig_hash)
orig_hash.each_key.group_by do |key|
orig_hash[key]
end
end
p safe_invert({"a"=>1, "b"=>1, "c"=>3}) # => {1=>["a", "b"], 3=>["c"]}
//}

@see Hash#key...

MatchData#byteoffset(name) -> [Integer, Integer] | [nil, nil] (7.0)

name という名前付きグループに対応する部分文字列のバイト単位のオフセットの 配列 [start, end] を返します。

...') # => [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...

MatchData#offset(name) -> [Integer, Integer] | [nil, nil] (7.0)

name という名前付きグループに対応する部分文字列のオフセットの配列 [start, end] を返 します。

...('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('century') # => `offset': undefined group name reference: century (IndexError)
//}

@see MatchData#begin, MatchData#end...
...0, 4]
p $~.offset(:year) # => [0, 4]
p $~.offset('month') # => [5, 6]
p $~.offset(:month) # => [5, 6]
p $~.offset('day') # => [nil, nil]
p $~.offset('century') # => `offset': undefined group name reference: century (IndexError)
//}

@see MatchData#begin, MatchData#end, MatchData#offset...

Net::FTP::MLSxEntry#facts -> { String => String|Integer|Time } (7.0)

そのエントリの「facts」を返します。

...NIX 系 OS の場合は以下のような facts が
使える可能性があります。

* "unix.mode": ファイルモード(Integer)
* "unix.group": グループ(Integer)
* "unix.owner": ファイルのオーナー(Integer)
* "unix.atime": ファイルに最後にアクセスした時刻...

Net::IMAP::Address#mailbox -> String | nil (7.0)

メールアドレスのメールボックス名を返します。

...メールアドレスのメールボックス名を返します。

これが nil ならばそれは 822 group の終わりを意味します。
これが nil でなく、Net::IMAP::Address#mailbox が nil ならば、
822 のグループ名を表します。
どれでもなければ、822 の local...

絞り込み条件を変える

OpenSSL::PKey::EC::Point#on_curve? -> bool (7.0)

点が曲線上にあるならば真を返します。

...点が曲線上にあるならば真を返します。

OpenSSL::PKey::EC::Group で得られる群と関連付けられた
曲線を考えます。

@raise OpenSSL::PKey::EC::Point::Error エラーが生じた場合に発生します...

PrettyPrint#first? -> bool (7.0)

このメソッドは obsolete です。

...最初の呼び出しかどうかを判定する
述語です。これはカンマで区切られた値を整形するのに有用です。

pp.group(1, '[', ']') {
xxx.each {|yyy|
unless pp.first?
pp.text ','
pp.breakable
end
... pretty printing yyy ...
}...

MatchData#byteoffset(n) -> [Integer, Integer] | [nil, nil] (2.0)

n 番目の部分文字列のバイト単位のオフセットの 配列 [start, end] を返します。

n 番目の部分文字列のバイト単位のオフセットの
配列 [start, end] を返します。

n番目の部分文字列がマッチしていなければ [nil, nil] を返します。

@param n 部分文字列を指定する数値

@raise IndexError 範囲外の n を指定した場合に発生します。

@see MatchData#offset

MatchData#offset(n) -> [Integer, Integer] | [nil, nil] (2.0)

n 番目の部分文字列のオフセットの配列 [start, end] を返 します。

n 番目の部分文字列のオフセットの配列 [start, end] を返
します。

//emlist[例][ruby]{
[ self.begin(n), self.end(n) ]
//}

と同じです。n番目の部分文字列がマッチしていなければ
[nil, nil] を返します。

@param n 部分文字列を指定する数値

@raise IndexError 範囲外の n を指定した場合に発生します。

@see MatchData#begin, MatchData#end
n 番目の部分文字列のオフセットの配列 [start, end] を返
します。

//emlist[例][ruby]{
[ self.begin(n), self.end(n) ]
//}

と同じです。n番目の部分文字列がマッチしていなければ
[nil, nil] を返します。

@param n 部分文字列を指定する数値

@raise IndexError 範囲外の n を指定した場合に発生します。

@see MatchData#begin, MatchData#end, MatchData#offset
<< < ... 6 7 8 >>