別のキーワード
ライブラリ
- ビルトイン (266)
- csv (24)
- json (84)
-
minitest
/ spec (1) -
net
/ pop (24) - openssl (60)
-
rexml
/ document (12) -
rubygems
/ commands / which _ command (12) - socket (120)
クラス
- CSV (12)
-
Encoding
:: Converter (84) -
Enumerator
:: Lazy (56) -
JSON
:: State (60) -
MiniTest
:: Spec (1) - Module (12)
-
Net
:: POP3 (24) -
OpenSSL
:: X509 :: Certificate (24) - Proc (6)
-
REXML
:: Parent (12) - Socket (60)
モジュール
- Enumerable (96)
- JSON (24)
-
OpenSSL
:: X509 (24) -
Socket
:: Constants (60)
キーワード
- CSV (12)
- Lazy (12)
-
MSG
_ CTRUNC (24) -
MSG
_ TRUNC (24) -
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 3
. 0 . 0 (5) -
TCP
_ KEEPCNT (24) -
TCP
_ KEEPIDLE (24) -
TCP
_ SYNCNT (24) -
V
_ ERR _ CERT _ NOT _ YET _ VALID (12) -
V
_ ERR _ ERROR _ IN _ CERT _ NOT _ BEFORE _ FIELD (12) - WhichCommand (12)
- X509 (12)
-
auth
_ only (24) -
chunk
_ while (21) -
each
_ entry (24) - generate (12)
-
insert
_ before (12) -
net
/ imap (12) - new (60)
-
not
_ before (12) -
not
_ before= (12) - openssl (12)
-
primitive
_ convert (48) -
ruby 1
. 8 . 4 feature (12) -
ruby2
_ keywords (18) -
rubygems
/ commands / lock _ command (12) -
slice
_ after (24) -
slice
_ before (60) -
slice
_ when (23) -
space
_ before (12) -
space
_ before= (12) -
to
_ h (12) -
to
_ hash (12) - unparse (12)
検索結果
先頭5件
- MiniTest
:: Spec . before(type = :each) { . . . } -> Proc - Enumerable
# slice _ before {|elt| bool } -> Enumerator - Enumerable
# slice _ before(pattern) -> Enumerator - Enumerator
:: Lazy # slice _ before {|elt| bool } -> Enumerator :: Lazy - Enumerator
:: Lazy # slice _ before(initial _ state) {|elt , state| bool } -> Enumerator :: Lazy
-
MiniTest
:: Spec . before(type = :each) { . . . } -> Proc (18101.0) -
各テストの前に実行するブロックを登録します。
各テストの前に実行するブロックを登録します。
@param type :each を指定することができます。
@raise RuntimeError type に :each 以外を指定すると発生します。 -
Enumerable
# slice _ before {|elt| bool } -> Enumerator (6138.0) -
パターンがマッチした要素、もしくはブロックが真を返した要素から 次にマッチする手前までを チャンク化(グループ化)したものを繰り返す Enumerator を 返します。
...をチャンクの先頭と見なす
[0,2,4,1,2,4,5,3,1,4,2].slice_before(&:even?).to_a
# => [[0], [2], [4, 1], [2], [4, 5, 3, 1], [4], [2]]
# 奇数要素をチャンクの先頭と見なす
[0,2,4,1,2,4,5,3,1,4,2].slice_before(&:odd?).to_a
# => [[0, 2, 4], [1, 2, 4], [5], [3], [1, 4, 2]]
# Chang......eLog のエントリーを順に取る
open("ChangeLog") {|f|
f.slice_before(/\A\S/).each {|e| pp e}
}
# 上と同じだが、パターンでなくブロックを使う
open("ChangeLog") {|f|
f.slice_before {|line| /\A\S/ === line }.each {|e| pp e}
}
# "svn proplist -R" の結果を分割す......る
# これは一要素が複数行にまたがっている
IO.popen([{"LC_ALL"=>"C"}, "svn", "proplist", "-R"]) {|f|
f.lines.slice_before(/\AProp/).each {|lines| p lines }
}
#=> ["Properties on '.':\n", " svn:ignore\n", " svk:merge\n"]
# ["Properties on 'goruby.c':\n", " svn:eol-style\n"]... -
Enumerable
# slice _ before(pattern) -> Enumerator (6138.0) -
パターンがマッチした要素、もしくはブロックが真を返した要素から 次にマッチする手前までを チャンク化(グループ化)したものを繰り返す Enumerator を 返します。
...をチャンクの先頭と見なす
[0,2,4,1,2,4,5,3,1,4,2].slice_before(&:even?).to_a
# => [[0], [2], [4, 1], [2], [4, 5, 3, 1], [4], [2]]
# 奇数要素をチャンクの先頭と見なす
[0,2,4,1,2,4,5,3,1,4,2].slice_before(&:odd?).to_a
# => [[0, 2, 4], [1, 2, 4], [5], [3], [1, 4, 2]]
# Chang......eLog のエントリーを順に取る
open("ChangeLog") {|f|
f.slice_before(/\A\S/).each {|e| pp e}
}
# 上と同じだが、パターンでなくブロックを使う
open("ChangeLog") {|f|
f.slice_before {|line| /\A\S/ === line }.each {|e| pp e}
}
# "svn proplist -R" の結果を分割す......る
# これは一要素が複数行にまたがっている
IO.popen([{"LC_ALL"=>"C"}, "svn", "proplist", "-R"]) {|f|
f.lines.slice_before(/\AProp/).each {|lines| p lines }
}
#=> ["Properties on '.':\n", " svn:ignore\n", " svk:merge\n"]
# ["Properties on 'goruby.c':\n", " svn:eol-style\n"]... -
Enumerator
:: Lazy # slice _ before {|elt| bool } -> Enumerator :: Lazy (6137.0) -
Enumerable#slice_before と同じですが、配列ではなく Enumerator::Lazy を返します。
...Enumerable#slice_before と同じですが、配列ではなく Enumerator::Lazy を返します。
//emlist[例][ruby]{
1.step.lazy.slice_before { |e| e.even? }
# => #<Enumerator::Lazy: #<Enumerator: #<Enumerator::Generator:0x00007f9f31844ce8>:each>>
1.step.lazy.slice_before { |e| e % 3 == 0 }.t......ake(5).force
# => [[1, 2], [3, 4, 5], [6, 7, 8], [9, 10, 11], [12, 13, 14]]
//}
@see Enumerable#slice_before... -
Enumerator
:: Lazy # slice _ before(initial _ state) {|elt , state| bool } -> Enumerator :: Lazy (6137.0) -
Enumerable#slice_before と同じですが、配列ではなく Enumerator::Lazy を返します。
...Enumerable#slice_before と同じですが、配列ではなく Enumerator::Lazy を返します。
//emlist[例][ruby]{
1.step.lazy.slice_before { |e| e.even? }
# => #<Enumerator::Lazy: #<Enumerator: #<Enumerator::Generator:0x00007f9f31844ce8>:each>>
1.step.lazy.slice_before { |e| e % 3 == 0 }.t......ake(5).force
# => [[1, 2], [3, 4, 5], [6, 7, 8], [9, 10, 11], [12, 13, 14]]
//}
@see Enumerable#slice_before... -
Enumerator
:: Lazy # slice _ before(pattern) -> Enumerator :: Lazy (6137.0) -
Enumerable#slice_before と同じですが、配列ではなく Enumerator::Lazy を返します。
...Enumerable#slice_before と同じですが、配列ではなく Enumerator::Lazy を返します。
//emlist[例][ruby]{
1.step.lazy.slice_before { |e| e.even? }
# => #<Enumerator::Lazy: #<Enumerator: #<Enumerator::Generator:0x00007f9f31844ce8>:each>>
1.step.lazy.slice_before { |e| e % 3 == 0 }.t......ake(5).force
# => [[1, 2], [3, 4, 5], [6, 7, 8], [9, 10, 11], [12, 13, 14]]
//}
@see Enumerable#slice_before... -
JSON
:: State # space _ before -> String (6125.0) -
JSON 形式の文字列中で JavaScript のオブジェクトを表す部分にある ':' の 前に挿入する文字列を返します。
...on_state = JSON::State.new(space_before: "")
json_state.space_before # => ""
puts JSON.generate([1, 2, { name: "tanaka", age: 19 }], json_state)
# => [1,2,{"name":"tanaka","age":19}]
json_state = JSON::State.new(space_before: " ")
json_state.space_before # => " "
puts JSON.g... -
JSON
:: State # space _ before=(string) (6125.0) -
JSON 形式の文字列中で JavaScript のオブジェクトを表す部分にある ':' の 前に挿入する文字列をセットします。
...json"
json_state = JSON::State.new(space_before: "")
json_state.space_before # => ""
puts JSON.generate([1, 2, { name: "tanaka", age: 19 }], json_state)
# => [1,2,{"name":"tanaka","age":19}]
json_state.space_before = " "
json_state.space_before # => " "
puts JSON.generate([... -
OpenSSL
:: X509 :: Certificate # not _ before -> Time (6101.0) -
証明書が有効になる時刻を返します。
証明書が有効になる時刻を返します。 -
OpenSSL
:: X509 :: Certificate # not _ before=(time) (6101.0) -
証明書が有効になる時刻を設定します。
証明書が有効になる時刻を設定します。
@param time 証明書の開始時刻
@raise OpenSSL::X509::CertificateError 設定に失敗した場合に発生します