330件ヒット
[101-200件を表示]
(0.124秒)
ライブラリ
- ビルトイン (21)
- monitor (12)
-
net
/ imap (12) - openssl (96)
-
rdoc
/ code _ object (24) -
rdoc
/ context (120) - set (9)
- uri (36)
クラス
- Array (6)
-
MonitorMixin
:: ConditionVariable (12) -
Net
:: IMAP :: FetchData (12) -
OpenSSL
:: Config (96) -
RDoc
:: CodeObject (24) -
RDoc
:: Context (36) -
RDoc
:: Context :: Section (84) - Set (12)
-
URI
:: Generic (36)
モジュール
- Enumerable (12)
キーワード
検索結果
先頭5件
-
RDoc
:: Context :: Section # set _ comment(comment) -> () (9213.0) -
自身にコメントを設定します。
... comment 文字列を指定します。
comment の最初の行に :section: を含んでいた場合、その行以降の文字列をコ
メントとして設定します。そうでない場合は comment すべてをコメントとして
設定します。
# ---------------------
# :section... -
RDoc
:: Context :: Section # comment -> String | nil (9117.0) -
section のコメントを返します。
...
section のコメントを返します。... -
RDoc
:: Context :: Section # sequence -> String (9117.0) -
section のシーケンス番号を文字列で返します。
...
section のシーケンス番号を文字列で返します。
リンクを作成する時に使われます。... -
RDoc
:: Context :: Section # inspect -> String (9101.0) -
自身の情報を人間に読みやすい文字列にして返します。
自身の情報を人間に読みやすい文字列にして返します。 -
OpenSSL
:: Config # each {|section , key , value| . . . } -> self (6214.0) -
オブジェクトに含まれる全ての設定情報を順にブロックに渡し 呼び出します。
...す。
require 'openssl'
conf = OpenSSL::Config.load(OpenSSL::Config::DEFAULT_CONFIG_FILE)
conf.each{|section, key, value| p [section, key, value]}
# => ["req_distinguished_name", "countryName", "Country Name (2 letter code)"]
# => ["req_distinguished_name", "countryName_default", "AU"]......# => ["req_distinguished_name", "countryName_min", "2"]
# => :... -
Set
# intersection(enum) -> Set (6201.0) -
共通部分、すなわち、2つの集合のいずれにも属するすべての要素からなる 新しい集合を作ります。
...も属するすべての要素からなる
新しい集合を作ります。
@param enum each メソッドが定義されたオブジェクトを指定します。
@raise ArgumentError 引数 enum に each メソッドが定義されていない場合に
発生します。
//emlist[][ruby]{......require 'set'
s1 = Set[10, 20, 30]
s2 = Set[10, 30, 50]
p s1 & s2 #=> #<Set: {10, 30}>
//}
@see Array#&, Array#intersection......s1 = Set[10, 20, 30]
s2 = Set[10, 30, 50]
p s1 & s2 #=> #<Set: {10, 30}>
//}
@see Array#&, Array#intersection... -
Enumerable
# chunk {|elt| . . . } -> Enumerator (6141.0) -
要素を前から順にブロックで評価し、その結果によって 要素をチャンクに分けた(グループ化した)要素を持つ Enumerator を返します。
...評価値と
各チャンクの要素を持つ配列のペアを各要素とします。
そのため、eachだと以下のようになります。
//emlist[][ruby]{
enum.chunk {|elt| key }.each {|key, ary| do_something }
//}
例として、整数列を連続する奇数/偶数に分ける例を......切り替わるところで区切られているのがわかるでしょう。
//emlist[例][ruby]{
[3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5].chunk {|n|
n.even?
}.each {|even, ary|
p [even, ary]
}
# => [false, [3, 1]]
# [true, [4]]
# [false, [1, 5, 9]]
# [true, [2, 6]]
# [false, [5, 3, 5]]......を調べています。
このファイルは、Linux や macOS などで、ソートされた英語(など)の単語の
リストを改行で区切って収めたものです。
大文字/小文字の違いを無視するため upcase しています。
//emlist[例][ruby]{
# ファイル... -
RDoc
:: Context :: Section # parent -> RDoc :: Context (6117.0) -
自身が所属する RDoc::Context オブジェクトを返します。
...自身が所属する RDoc::Context オブジェクトを返します。... -
RDoc
:: Context :: Section # title -> String | nil (6017.0) -
section のタイトルを返します。
...
section のタイトルを返します。... -
RDoc
:: Context :: Section # ==(other) -> bool (6013.0) -
自身と other のシーケンス番号を比較した結果を返します。
...自身と other のシーケンス番号を比較した結果を返します。
@param other RDoc::Context::Section オブジェクトを指定します。...