24件ヒット
[1-24件を表示]
(0.083秒)
別のキーワード
検索結果
先頭2件
-
Rake
:: TaskManager # lookup(task _ name , initial _ scope = nil) -> Rake :: Task | nil (18232.0) -
与えられたタスク名にマッチするタスクを検索します。
...使用します。
@param task_name タスク名を指定します。
@param initial_scope 検索するスコープを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do |task|
task.application.lookup("test_rake_app") #... -
BasicSocket
# do _ not _ reverse _ lookup -> bool (6280.0) -
ソケットごとのアドレスからホスト名への逆引きの設定を返します。
...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=...