るりまサーチ

最速Rubyリファレンスマニュアル検索!
106件ヒット [1-100件を表示] (0.193秒)

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. bigdecimal to_r
  5. fileutils cp_r

モジュール

キーワード

検索結果

<< 1 2 > >>

Kernel#directory(dir) -> () (24214.0)

与えられたディレクトリを作成するタスクを定義します。

...与えられたディレクトリを作成するタスクを定義します。

@
param dir 作成するディレクトリを指定します。

例:
directory
'testdata/doc'...

Pathname#directory? -> bool (12230.0)

FileTest.directory?(self.to_s) と同じです。

...FileTest.directory?(self.to_s) と同じです。


@
see FileTest.#directory?...

File::Stat#directory? -> bool (12220.0)

ディレクトリの時に真を返します。

...ディレクトリの時に真を返します。

//emlist[][ruby]{
p File::Stat.new($0).directory? #=> false
//}

@
see FileTest.#directory?...

Shell#directory?(file) -> bool (12220.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

...FileTest モジュールにある同名のクラスメソッドと同じです.

@
param file ファイル名を表す文字列か IO オブジェクトを指定します。

@
see FileTest.#directory?...

Shell::CommandProcessor#directory?(file) -> bool (12220.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

...FileTest モジュールにある同名のクラスメソッドと同じです.

@
param file ファイル名を表す文字列か IO オブジェクトを指定します。

@
see FileTest.#directory?...

絞り込み条件を変える

Shell::Filter#directory?(file) -> bool (12220.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

...FileTest モジュールにある同名のクラスメソッドと同じです.

@
param file ファイル名を表す文字列か IO オブジェクトを指定します。

@
see FileTest.#directory?...

Pathname#relative_path_from(base_directory) -> Pathname (6354.0)

base_directory から self への相対パスを求め、その内容の新しい Pathname オブジェクトを生成して返します。

...se_directory から self への相対パスを求め、その内容の新しい Pathname
オブジェクトを生成して返します。

パス名の解決は文字列操作によって行われ、ファイルシステムをアクセス
しません。

self が相対パスなら base_directory...
...が絶対パスなら
base_directory も絶対パスでなければなりません。

@
param base_directory ベースディレクトリを表す Pathname オブジェクトを指定します。

@
raise ArgumentError Windows上でドライブが違うなど、base_directory から self への相対...
...パスが求められないときに例外が発生します。

//emlist[例][ruby]{
r
equire 'pathname'

path = Pathname.new("/tmp/foo")
base = Pathname.new("/tmp")

path.relative_path_from(base) # => #<Pathname:foo>
//}...

Pathname#children(with_directory = true) -> [Pathname] (6320.0)

self 配下にあるパス名(Pathnameオブジェクト)の配列を返します。

...まれません。

@
param with_directory 偽を指定するとファイル名のみ返します。デフォルトは真です。

@
raise Errno::EXXX self が存在しないパスであったりディレクトリでなければ例外が発生します。

//emlist[例][ruby]{
r
equire 'pathname'
Path...
...name.new("/tmp").children # => [#<Pathname:.X11-unix>, #<Pathname:.iroha_unix>, ... ]
//}...

Gem::Installer#unpack(directory) (3214.0)

与えられたディレクトリに Gem を展開します。

...与えられたディレクトリに Gem を展開します。

@
param directory Gem を展開するディレクトリを指定します。...

Pathname#each_child(with_directory = true) -> Enumerator (237.0)

self.children(with_directory).each と同じです。

...ildren(with_directory).each と同じです。

@
param with_directory 偽を指定するとファイル名のみ返します。デフォルトは真です。

//emlist[例][ruby]{
r
equire "pathname"

Pathname("/usr/local").each_child {|f| p f }
# => #<Pathname:/usr/local/bin>
# => #<Pathname:/usr/lo...
...cal/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>
# => #<Pathname:et...
...c>
# => #<Pathname:include>
# => #<Pathname:lib>
# => #<Pathname:opt>
# => #<Pathname:sbin>
# => #<Pathname:share>
# => #<Pathname:var>
//}

@
see Pathname#children...

絞り込み条件を変える

Pathname#each_child(with_directory = true) {|pathname| ...} -> [Pathname] (237.0)

self.children(with_directory).each と同じです。

...ildren(with_directory).each と同じです。

@
param with_directory 偽を指定するとファイル名のみ返します。デフォルトは真です。

//emlist[例][ruby]{
r
equire "pathname"

Pathname("/usr/local").each_child {|f| p f }
# => #<Pathname:/usr/local/bin>
# => #<Pathname:/usr/lo...
...cal/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>
# => #<Pathname:et...
...c>
# => #<Pathname:include>
# => #<Pathname:lib>
# => #<Pathname:opt>
# => #<Pathname:sbin>
# => #<Pathname:share>
# => #<Pathname:var>
//}

@
see Pathname#children...
<< 1 2 > >>