245件ヒット
[1-100件を表示]
(0.082秒)
種類
- インスタンスメソッド (156)
- 文書 (41)
- 特異メソッド (24)
- マクロ (12)
- クラス (12)
ライブラリ
- ビルトイン (96)
- ipaddr (12)
-
rubygems
/ commands / dependency _ command (12) - socket (72)
クラス
- Array (60)
- BasicSocket (72)
-
Gem
:: Commands :: DependencyCommand (12) - IPAddr (12)
- String (24)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) -
FL
_ REVERSE (12) -
NEWS for Ruby 3
. 0 . 0 (5) - String (12)
-
do
_ not _ reverse _ lookup (24) -
do
_ not _ reverse _ lookup= (24) - each (24)
-
each
_ index (24) -
find
_ reverse _ dependencies (12) - getpeername (12)
- getsockname (12)
- reverse! (12)
-
reverse
_ each (12) -
ruby 1
. 6 feature (12) -
ruby 1
. 9 feature (12)
検索結果
先頭5件
-
String
# reverse -> String (21213.0) -
文字列を文字単位で左右逆転した文字列を返します。
...文字列を文字単位で左右逆転した文字列を返します。
//emlist[例][ruby]{
p "foobar".reverse # => "raboof"
p "".reverse # => ""
//}... -
IPAddr
# reverse -> String (21207.0) -
DNS 逆引きのための文字列を返します。 IPv6 なら 3172 で定義された形式で返します。
...DNS 逆引きのための文字列を返します。
IPv6 なら 3172 で定義された形式で返します。
例:
require "ipaddr"
p IPAddr.new("192.168.0.1").reverse # => "1.0.168.192.in-addr.arpa"... -
Gem
:: Commands :: DependencyCommand # find _ reverse _ dependencies(spec) -> Array (12201.0) -
与えられた Gem スペックに依存する Gem のリストを返します。
...与えられた Gem スペックに依存する Gem のリストを返します。
@param spec Gem::Specification のインスタンスを指定します。... -
BasicSocket
# do _ not _ reverse _ lookup -> bool (9137.0) -
ソケットごとのアドレスからホスト名への逆引きの設定を返します。
...成したときの
BasicSocket.do_not_reverse_lookup の値になります。
require '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) (9123.0) -
BasicSocket#do_not_reverse_lookup の値を変更します。
...BasicSocket#do_not_reverse_lookup の値を変更します。
@param bool この値が真ならアドレスからホスト名への逆引きを行わなくなります。
例:
require 'socket'
p TCPSocket.new('localhost', 'telnet').addr
TCPSocket.do_not_reverse_lookup = true
p TCPSock......et.new('localhost', 'telnet').addr
=> ["AF_INET", 2253, "localhost", "127.0.0.1"]
["AF_INET", 2254, "127.0.0.1", "127.0.0.1"]... -
BasicSocket
. do _ not _ reverse _ lookup -> bool (9117.0) -
Socket#do_not_reverse_lookup の Socket オブジェクト生成時の デフォルト値を返します。
...Socket#do_not_reverse_lookup の Socket オブジェクト生成時の
デフォルト値を返します。
この設定は大域的に作用します。
デフォルトは true です。... -
BasicSocket
# do _ not _ reverse _ lookup=(bool) (9107.0) -
アドレスからホスト名への逆引きの設定をソケットごとに設定します。
...アドレスからホスト名への逆引きの設定をソケットごとに設定します。
@param bool この値が真ならアドレスからホスト名への逆引きを行わなくなります。
@see BasicSocket#do_not_reverse_lookup... -
String
# reverse! -> self (9107.0) -
文字列を文字単位で左右逆転します。
...文字列を文字単位で左右逆転します。
//emlist[例][ruby]{
str = "foobar"
str.reverse!
p str # => "raboof"
//}... -
Array
# reverse _ each {|item| . . . } -> self (6214.0) -
各要素に対して逆順にブロックを評価します。
...て逆順にブロックを評価します。
ブロックが与えられなかった場合は、自身と reverse_each から生成した
Enumerator オブジェクトを返します。
//emlist[例][ruby]{
a = [ "a", "b", "c" ]
a.reverse_each {|x| print x, " " }
# => c b a
//}
@see Array#each...