るりまサーチ

最速Rubyリファレンスマニュアル検索!
325件ヒット [1-100件を表示] (0.102秒)
トップページ > クエリ:r[x] > クエリ:reverse[x]

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. fileutils rm_r
  5. fileutils cp_r

検索結果

<< 1 2 3 ... > >>

rubygems/commands/dependency_command (26024.0)

インストールされている Gem パッケージの依存関係を表示するためのライブラリです。

...AME [options]
Options:
-v, --version VERSION 指定したバージョンの依存関係を表示します
--platform PLATFORM 指定したプラットフォームの依存関係を表示します
-R, --[no-]reverse-dependencies この Gem を使用し...
...いる Gem を表示します
-p, --pipe Pipe Format (name --version ver)
Local/Remote Options:
-l, --local 操作をローカルに限定します
-r, --remote 操作をリモートに限定します
-b, --bo...
...-B, --bulk-threshold COUNT Threshold for switching to bulk
synchronization (default 1000)
--source URL Gem パッケージのリモートリポジトリの URL を指定します
--[no-]http-proxy [URL] リモ...

Array#reverse -> Array (24262.0)

reverse は自身の要素を逆順に並べた新しい配列を生成して返します。 reverse! は自身を破壊的に並べ替えます。 reverse! は self を返します。

...
reverse
は自身の要素を逆順に並べた新しい配列を生成して返します。
reverse
! は自身を破壊的に並べ替えます。
reverse
! は self を返します。

//emlist[例][ruby]{
a = ["a", 2, true]
p a.reverse #=> [true, 2, "a"]
p a #=> ["a", 2, t...
...rue] (変化なし)

a = ["a", 2, true]
p a.reverse! #=> [true, 2, "a"]
p a #=> [true, 2, "a"]
//}...

String#reverse -> String (24213.0)

文字列を文字単位で左右逆転した文字列を返します。

...文字列を文字単位で左右逆転した文字列を返します。

//emlist[例][ruby]{
p "foobar".reverse # => "raboof"
p "".reverse # => ""
//}...

IPAddr#reverse -> String (24207.0)

DNS 逆引きのための文字列を返します。 IPv6 なら 3172 で定義された形式で返します。

...DNS 逆引きのための文字列を返します。
IPv6 なら 3172 で定義された形式で返します。

例:

r
equire "ipaddr"
p IPAddr.new("192.168.0.1").reverse # => "1.0.168.192.in-addr.arpa"...

Array#reverse! -> self (12262.0)

reverse は自身の要素を逆順に並べた新しい配列を生成して返します。 reverse! は自身を破壊的に並べ替えます。 reverse! は self を返します。

...
reverse
は自身の要素を逆順に並べた新しい配列を生成して返します。
reverse
! は自身を破壊的に並べ替えます。
reverse
! は self を返します。

//emlist[例][ruby]{
a = ["a", 2, true]
p a.reverse #=> [true, 2, "a"]
p a #=> ["a", 2, t...
...rue] (変化なし)

a = ["a", 2, true]
p a.reverse! #=> [true, 2, "a"]
p a #=> [true, 2, "a"]
//}...

絞り込み条件を変える

BasicSocket#do_not_reverse_lookup -> bool (12237.0)

ソケットごとのアドレスからホスト名への逆引きの設定を返します。

....do_not_reverse_lookup の値になります。

r
equire 'socket'

BasicSocket.do_not_reverse_lookup = false
TCPSocket.open("www.ruby-lang.org", 80) {|sock|
p sock.do_not_reverse_lookup # => false
}
BasicSocket.do_not_reverse_lookup = true
TCPSocket.open("www.ruby-lang.org", 80)...
...{|sock|
p sock.do_not_reverse_lookup # => true
}

@see BasicSocket#do_not_reverse_lookup=...

BasicSocket.do_not_reverse_lookup=(bool) (12223.0)

BasicSocket#do_not_reverse_lookup の値を変更します。

...sicSocket#do_not_reverse_lookup の値を変更します。

@param bool この値が真ならアドレスからホスト名への逆引きを行わなくなります。

例:

r
equire 'socket'

p TCPSocket.new('localhost', 'telnet').addr
TCPSocket.do_not_reverse_lookup = true
p TCPSocket....
...new('localhost', 'telnet').addr

=> ["AF_INET", 2253, "localhost", "127.0.0.1"]
["AF_INET", 2254, "127.0.0.1", "127.0.0.1"]...

Range#reverse_each -> Enumerator (12220.0)

逆順に各要素に対してブロックを評価します。

...を作ります。ただし、端点が Integer である場合は、配列を作らないように最適化が行われています。

ブロックを省略した場合は、各要素を逆順に辿る
Enumerator を返します。

@raise TypeError 終端を持たない範囲オブジェクトに...
...対してこのメソッドを呼んだ場合に発生します。

//emlist[例][ruby]{
(1..3).reverse_each # => #<Enumerator: ...>
(1..3).reverse_each { |v| p v }
# => 3
# 2
# 1
(1..).reverse_each { |v| p v } # raises: TypeError: can't iterate from NilClass
//}...

Range#reverse_each {|element| ... } -> self (12220.0)

逆順に各要素に対してブロックを評価します。

...を作ります。ただし、端点が Integer である場合は、配列を作らないように最適化が行われています。

ブロックを省略した場合は、各要素を逆順に辿る
Enumerator を返します。

@raise TypeError 終端を持たない範囲オブジェクトに...
...対してこのメソッドを呼んだ場合に発生します。

//emlist[例][ruby]{
(1..3).reverse_each # => #<Enumerator: ...>
(1..3).reverse_each { |v| p v }
# => 3
# 2
# 1
(1..).reverse_each { |v| p v } # raises: TypeError: can't iterate from NilClass
//}...

BasicSocket.do_not_reverse_lookup -> bool (12217.0)

Socket#do_not_reverse_lookup の Socket オブジェクト生成時の デフォルト値を返します。

...Socket#do_not_reverse_lookup の Socket オブジェクト生成時の
デフォルト値を返します。

この設定は大域的に作用します。

デフォルトは true です。...

絞り込み条件を変える

Array#reverse_each -> Enumerator (12214.0)

各要素に対して逆順にブロックを評価します。

...て逆順にブロックを評価します。

ブロックが与えられなかった場合は、自身と reverse_each から生成した
Enumerator オブジェクトを返します。

//emlist[例][ruby]{
a = [ "a", "b", "c" ]
a.reverse_each {|x| print x, " " }
# => c b a
//}

@see Array#each...
<< 1 2 3 ... > >>