るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.019秒)
トップページ > クエリ:path[x] > クエリ:find[x] > 種類:ライブラリ[x]

別のキーワード

  1. _builtin path
  2. pathname to_path
  3. _builtin absolute_path
  4. _builtin to_path
  5. csv path

検索結果

find (38067.0)

ディレクトリ配下のファイルを探索するためのモジュールです。

...リ配下のファイルを探索するためのモジュールです。

=== 使い方

require "find"

Find
.find('/foo','/bar') {|f| ...}

または

require "find"

include Find
find
('/foo','/bar') {|f| ...}

以下は、ruby のアーカイブに含まれるサンプルスクリプ...
...equire "find"
# 他人が書き込み可能な危険なコマンドを探す

for dir in ENV['PATH'].split(File::PATH_SEPARATOR)
Find
.find(dir) do |fpath|
if File.file?(fpath) and (File.stat(fpath).mode & 022) != 0
printf("file %s is writable from other users\n", fpath)...

webrick/cgi (13.0)

一般の CGI 環境で webrick ライブラリのサーブレットと同じように CGI スクリプトを書くための ライブラリです。サーバが WEBrick でなくても使うことが出来ます。

...CGI
def do_GET(req, res)
req.cookies #=> WEBrick::Cookie オブジェクトの配列
c = req.cookies.find{|c| c.name == "name1" } #=> WEBrick::Cookie オブジェクト
end
end
MyCGI.new.start()


==== CGI に関連する環境変数の値を取...
...できます。

require "webrick/cgi"
class MyCGI < WEBrick::CGI
def do_GET(req, res)
req.content_length
req.content_type
req.path_info
req.query_string
req.peeraddr
req.host
req.user
req.request_method
req.script_name
req.port
end
end
MyC...