537件ヒット
[1-100件を表示]
(0.077秒)
ライブラリ
- ビルトイン (48)
-
net
/ ftp (20) -
net
/ http (43) - pathname (60)
- psych (48)
- rake (12)
- rubygems (24)
-
rubygems
/ ext / builder (12) -
rubygems
/ ext / configure _ builder (12) -
rubygems
/ ext / ext _ conf _ builder (12) -
rubygems
/ ext / rake _ builder (12) -
rubygems
/ indexer (48) -
rubygems
/ installer (12) -
rubygems
/ package / tar _ reader / entry (12) -
rubygems
/ source _ index (12) - shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6) - socket (48)
-
webrick
/ httpresponse (12) -
webrick
/ httpstatus (48)
クラス
- File (12)
-
File
:: Stat (12) -
Gem
:: Ext :: Builder (12) -
Gem
:: Ext :: ConfigureBuilder (12) -
Gem
:: Ext :: ExtConfBuilder (12) -
Gem
:: Ext :: RakeBuilder (12) -
Gem
:: Indexer (48) -
Gem
:: Installer (12) -
Gem
:: Package :: TarReader :: Entry (12) -
Gem
:: SourceIndex (12) -
Net
:: FTP :: MLSxEntry (20) - Pathname (60)
-
Psych
:: Handler (12) -
Psych
:: Nodes :: Document (36) - Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - Socket (24)
-
WEBrick
:: HTTPResponse (12)
モジュール
-
File
:: Constants (12) - FileTest (12)
- Gem (24)
- Kernel (12)
-
Socket
:: Constants (24) -
WEBrick
:: HTTPStatus (24)
キーワード
-
AF
_ DLI (24) - DIRECTORIES (12)
- HTTPMisdirectedRequest (8)
- HTTPPermanentRedirect (11)
- HTTPRedirection (12)
- HTTPTemporaryRedirect (12)
-
PF
_ DLI (24) -
RC
_ TEMPORARY _ REDIRECT (12) - Redirect (12)
- TemporaryRedirect (12)
- build (36)
- children (12)
-
dest
_ directory (12) - directory (24)
- directory? (88)
-
directory
_ makable? (10) -
each
_ child (24) -
ensure
_ gem _ subdirectories (12) -
installed
_ spec _ directories (12) -
make
_ temp _ directories (12) - new (24)
- redirect? (12)
- redirector (12)
-
relative
_ path _ from (12) -
ruby 1
. 8 . 2 feature (12) -
set
_ redirect (12) -
st
_ add _ direct (12) -
start
_ document (12) -
tag
_ directives (12) -
tag
_ directives= (12) - unpack (12)
検索結果
先頭5件
-
File
:: Constants :: DIRECT -> Integer (24213.0) -
このファイルに対する I/O のキャッシュの効果を最小化しようとする。
...:Constants::DIRECT フラグ自身はデー
タを同期で転送しようとはするが、 File::Constants::SYNC のようにデータと必要なメタデー
タの転送が保証されるわけではない。 同期 I/O を保証するためには、
File::Constants::DIRECT に加えて File::Co......nstants::SYNC を使用しなければならない。
File.openで使用します。... -
Pathname
# each _ child(with _ directory = true) -> Enumerator (12300.0) -
self.children(with_directory).each と同じです。
...self.children(with_directory).each と同じです。
@param with_directory 偽を指定するとファイル名のみ返します。デフォルトは真です。
//emlist[例][ruby]{
require "pathname"
Pathname("/usr/local").each_child {|f| p f }
# => #<Pathname:/usr/local/bin>
# => #<Pathname......:/usr/local/etc>
# => #<Pathname:/usr/local/include>
# => #<Pathname:/usr/local/lib>
# => #<Pathname:/usr/local/opt>
# => #<Pathname:/usr/local/sbin>
# => #<Pathname:/usr/local/share>
# => #<Pathname:/usr/local/var>
Pathname("/usr/local").each_child(false) {|f| p f }
# => #<Pathname:bin>
# => #<Pat......hname:etc>
# => #<Pathname:include>
# => #<Pathname:lib>
# => #<Pathname:opt>
# => #<Pathname:sbin>
# => #<Pathname:share>
# => #<Pathname:var>
//}
@see Pathname#children... -
Pathname
# each _ child(with _ directory = true) {|pathname| . . . } -> [Pathname] (12300.0) -
self.children(with_directory).each と同じです。
...self.children(with_directory).each と同じです。
@param with_directory 偽を指定するとファイル名のみ返します。デフォルトは真です。
//emlist[例][ruby]{
require "pathname"
Pathname("/usr/local").each_child {|f| p f }
# => #<Pathname:/usr/local/bin>
# => #<Pathname......:/usr/local/etc>
# => #<Pathname:/usr/local/include>
# => #<Pathname:/usr/local/lib>
# => #<Pathname:/usr/local/opt>
# => #<Pathname:/usr/local/sbin>
# => #<Pathname:/usr/local/share>
# => #<Pathname:/usr/local/var>
Pathname("/usr/local").each_child(false) {|f| p f }
# => #<Pathname:bin>
# => #<Pat......hname:etc>
# => #<Pathname:include>
# => #<Pathname:lib>
# => #<Pathname:opt>
# => #<Pathname:sbin>
# => #<Pathname:share>
# => #<Pathname:var>
//}
@see Pathname#children... -
Shell
# directory?(file) -> bool (12216.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#directory?... -
Shell
:: CommandProcessor # directory?(file) -> bool (12216.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#directory?... -
Shell
:: Filter # directory?(file) -> bool (12216.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#directory?... -
WEBrick
:: HTTPResponse # set _ redirect(status , url) -> () (12206.0) -
指定された url にリダイレクトするためのヘッダと内容(エンティティボディ)を 設定し例外 status を発生させます。
...ためのヘッダと内容(エンティティボディ)を
設定し例外 status を発生させます。
@param status WEBrick::HTTPStatus::Redirect を指定します。
@param url URL を指定します。
例:
require 'webrick'
res.set_redirect WEBrick::HTTPStatus::TemporaryRedirect... -
File
. directory?(path) -> bool (12200.0) -
FileTest.#directory? と同じです。
...FileTest.#directory? と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。... -
File
:: Stat # directory? -> bool (12200.0) -
ディレクトリの時に真を返します。
...ディレクトリの時に真を返します。
//emlist[][ruby]{
p File::Stat.new($0).directory? #=> false
//}
@see FileTest.#directory?... -
FileTest
. # directory?(file) -> bool (12200.0) -
ファイルがディレクトリの時に真を返します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
...ブジェクト file が既に close されていた場合に発生します。
例:
FileTest.directory?('/etc') # => true
FileTest.directory?('/etc/passwd') # => false
f = File.open('/etc')
FileTest.directory?(f) # => true
f.close
FileTest.directory?(f) # => IOError: closed stream...