206件ヒット
[101-200件を表示]
(0.100秒)
ライブラリ
- ビルトイン (36)
-
net
/ ftp (20) - pathname (60)
- rake (24)
-
rubygems
/ indexer (24) -
rubygems
/ installer (12) -
rubygems
/ package / tar _ reader / entry (12) - shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6)
クラス
-
File
:: Stat (24) -
Gem
:: Indexer (24) -
Gem
:: Installer (12) -
Gem
:: Package :: TarReader :: Entry (12) - IO (12)
-
Net
:: FTP :: MLSxEntry (20) - Pathname (60)
- Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6)
モジュール
- Kernel (24)
キーワード
- children (12)
-
close
_ on _ exec= (12) -
dest
_ directory (12) - directory? (64)
-
directory
_ makable? (10) -
each
_ child (24) -
file
_ create (12) - ftype (12)
-
relative
_ path _ from (12) - unpack (12)
検索結果
先頭5件
-
Net
:: FTP :: MLSxEntry # directory _ makable? -> bool (6102.0) -
ディレクトリを作成可能ならば true を返します。
ディレクトリを作成可能ならば true を返します。
Net::FTP#mkdir でディレクトリを作成可能かどうかを意味します。 -
Pathname
# relative _ path _ from(base _ directory) -> Pathname (142.0) -
base_directory から self への相対パスを求め、その内容の新しい Pathname オブジェクトを生成して返します。
...se_directory から self への相対パスを求め、その内容の新しい Pathname
オブジェクトを生成して返します。
パス名の解決は文字列操作によって行われ、ファイルシステムをアクセス
しません。
self が相対パスなら base_directory......が絶対パスなら
base_directory も絶対パスでなければなりません。
@param base_directory ベースディレクトリを表す Pathname オブジェクトを指定します。
@raise ArgumentError Windows上でドライブが違うなど、base_directory から self への相対... -
Pathname
# each _ child(with _ directory = true) -> Enumerator (125.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... -
Pathname
# each _ child(with _ directory = true) {|pathname| . . . } -> [Pathname] (125.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... -
Gem
:: Installer # unpack(directory) (108.0) -
与えられたディレクトリに Gem を展開します。
...与えられたディレクトリに Gem を展開します。
@param directory Gem を展開するディレクトリを指定します。... -
Pathname
# children(with _ directory = true) -> [Pathname] (108.0) -
self 配下にあるパス名(Pathnameオブジェクト)の配列を返します。
...にあるパス名(Pathnameオブジェクト)の配列を返します。
ただし、 ".", ".." は要素に含まれません。
@param with_directory 偽を指定するとファイル名のみ返します。デフォルトは真です。
@raise Errno::EXXX self が存在しないパスであ... -
File
:: Stat # ftype -> String (13.0) -
ファイルのタイプを表す文字列を返します。
...のうちのいずれかです。
"file"
"directory"
"characterSpecial"
"blockSpecial"
"fifo"
"link"
"socket"
"unknown"
//emlist[例][ruby]{
fs = File::Stat.new($0)
p fs.ftype #=> "file"
p File::Stat.new($:[0]).ftype #=> "directory"
//}
1.8 以降では、属性メソッドが... -
IO
# close _ on _ exec=(bool) (7.0) -
自身に close-on-exec フラグを設定します。
...2)
@param bool 自身の close-on-exec フラグを true か false で指定します。
f = open("/dev/null")
f.close_on_exec = true
system("cat", "/proc/self/fd/#{f.fileno}") # cat: /proc/self/fd/3: No such file or directory
f.closed? #=> false
@see IO#close_on_exec?... -
Kernel
# file _ create(*args) { . . . } -> Rake :: FileCreationTask (7.0) -
ファイルを作成するタスクを定義します。
...ファイルを作成するタスクを定義します。
主に Kernel.#directory を定義するために使用します。...