430件ヒット
[201-300件を表示]
(0.197秒)
クラス
- BasicSocket (12)
-
Encoding
:: Converter (12) - Enumerator (24)
- Integer (36)
- Object (16)
-
OpenSSL
:: OCSP :: BasicResponse (24) -
OpenSSL
:: X509 :: CRL (24) -
Prime
:: EratosthenesGenerator (36) -
Prime
:: Generator23 (24) -
Prime
:: PseudoPrimeGenerator (24) -
Prime
:: TrialDivisionGenerator (24) -
REXML
:: Child (36) -
REXML
:: Element (12) -
RubyVM
:: InstructionSequence (12) - StopIteration (12)
- String (48)
- ThreadsWait (6)
-
Zlib
:: Inflate (12) -
Zlib
:: ZStream (24)
モジュール
-
REXML
:: Node (12)
キーワード
- << (12)
-
add
_ status (12) - feed (12)
-
flush
_ next _ in (12) -
flush
_ next _ out (12) - getpeereid (12)
- next! (12)
-
next
_ element (12) -
next
_ sibling (12) -
next
_ sibling= (12) -
next
_ sibling _ node (12) -
next
_ update (12) -
next
_ update= (12) -
next
_ wait (6) - pred (12)
-
previous
_ sibling= (12) -
primitive
_ errinfo (12) - result (12)
- rewind (24)
- status (12)
- succ (72)
- succ! (12)
-
to
_ a (12) -
yield
_ self (16)
検索結果
先頭5件
-
OpenSSL
:: X509 :: CRL # next _ update -> Time (6202.0) -
CRL の次回更新日時を Time オブジェクトで返します。
...CRL の次回更新日時を Time オブジェクトで返します。... -
Enumerator
# rewind -> self (6131.0) -
列挙状態を巻き戻します。
...態を巻き戻します。
next メソッドによる外部列挙の状態を最初まで巻き戻します。 self を返します。
内包するオブジェクトが rewind メソッドを持つとき(respond_to?(:rewind) に
真を返すとき) は、その rewind メソッドを呼び出し......ます。
@see Enumerator#next
//emlist[例][ruby]{
str = "xyz"
enum = str.each_byte
p enum.next # => 120
p enum.next # => 121
enum.rewind
p enum.next # => 120
//}... -
Prime
:: EratosthenesGenerator # rewind -> nil (6125.0) -
列挙状態を巻き戻します。
...列挙状態を巻き戻します。
//emlist[例][ruby]{
require 'prime'
generator = Prime::EratosthenesGenerator.new
p generator.next #=> 2
p generator.next #=> 3
p generator.next #=> 5
generator.rewind
p generator.next #=> 2
//}... -
Prime
:: EratosthenesGenerator # succ -> Integer (6120.0) -
次の(擬似)素数を返します。なお、この実装においては擬似素数は真に素数です。
...いては擬似素数は真に素数です。
また内部的な列挙位置を進めます。
//emlist[例][ruby]{
require 'prime'
generator = Prime::EratosthenesGenerator.new
p generator.next #=> 2
p generator.next #=> 3
p generator.succ #=> 5
p generator.succ #=> 7
p generator.next #=> 11
//}... -
Integer
# succ -> Integer (6114.0) -
self の次の整数を返します。
...self の次の整数を返します。
//emlist[][ruby]{
1.next #=> 2
(-1).next #=> 0
1.succ #=> 2
(-1).succ #=> 0
//}
@see Integer#pred... -
BasicSocket
# getpeereid -> [Integer , Integer] (6107.0) -
Unix ドメインソケットにおいて接続相手の euid と egid を 返します。
...Unix ドメインソケットにおいて接続相手の euid と egid を
返します。
配列の最初の要素が euid, 2番目の要素が egid です。
ソケットが Unix ドメインソケットでない場合の返り値は
不定です。
require 'socket'
Socket.unix_server_loop......("/tmp/sock") {|s|
begin
euid, egid = s.getpeereid
# Check the connected client is myself or not.
next if euid != Process.uid
# do something about my resource.
ensure
s.close
end
}... -
Object
# yield _ self -> Enumerator (6107.0) -
self を引数としてブロックを評価し、ブロックの結果を返します。
...ist[例][ruby]{
"my string".yield_self {|s| s.upcase } # => "MY STRING"
3.next.yield_self {|x| x**x }.to_s # => "256"
//}
値をメソッドチェインのパイプラインに次々と渡すのは良い使い方です。
//emlist[メソッドチェインのパイプライン][ruby]{
requi......'open-uri'
require 'json'
construct_url(arguments).
yield_self {|url| URI(url).read }.
yield_self {|response| JSON.parse(response) }
//}
ブロックなしで呼び出されたときは Enumerator を返します。
例えば条件によって値を捨てるのに使えます。
//emlist[][ru......by]{
# 条件にあうので何もしない
1.yield_self.detect(&:odd?) # => 1
# 条件に合わないので値を捨てる
2.yield_self.detect(&:odd?) # => nil
//}
@see Object#tap... -
Object
# yield _ self {|x| . . . } -> object (6107.0) -
self を引数としてブロックを評価し、ブロックの結果を返します。
...ist[例][ruby]{
"my string".yield_self {|s| s.upcase } # => "MY STRING"
3.next.yield_self {|x| x**x }.to_s # => "256"
//}
値をメソッドチェインのパイプラインに次々と渡すのは良い使い方です。
//emlist[メソッドチェインのパイプライン][ruby]{
requi......'open-uri'
require 'json'
construct_url(arguments).
yield_self {|url| URI(url).read }.
yield_self {|response| JSON.parse(response) }
//}
ブロックなしで呼び出されたときは Enumerator を返します。
例えば条件によって値を捨てるのに使えます。
//emlist[][ru......by]{
# 条件にあうので何もしない
1.yield_self.detect(&:odd?) # => 1
# 条件に合わないので値を捨てる
2.yield_self.detect(&:odd?) # => nil
//}
@see Object#tap... -
REXML
:: Child # previous _ sibling=(other) (6107.0) -
other を self の前の隣接ノードとします。
...other を挿入します。
@param other 挿入するノード
//emlist[][ruby]{
require 'rexml/document'
a = REXML::Element.new("a")
b = a.add_element("b")
c = REXML::Element.new("c")
b.next_sibling = c
d = REXML::Element.new("d")
b.previous_sibling = d
p a.to_s # => "<a><d/><b/><c/></a>"
//}... -
Prime
:: Generator23 # succ -> Integer (6102.0) -
次の擬似素数を返します。
次の擬似素数を返します。
また内部的な列挙位置を進めます。 -
Prime
:: TrialDivisionGenerator # succ -> Integer (6102.0) -
次の(擬似)素数を返します。なお、この実装においては擬似素数は真に素数です。
次の(擬似)素数を返します。なお、この実装においては擬似素数は真に素数です。
また内部的な列挙位置を進めます。