るりまサーチ

最速Rubyリファレンスマニュアル検索!
366件ヒット [301-366件を表示] (0.091秒)
トップページ > クエリ:r[x] > クラス:Shell[x] > 種類:インスタンスメソッド[x]

別のキーワード

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

ライブラリ

キーワード

検索結果

<< < ... 2 3 4 >>

Shell#join(*item) -> String (102.0)

File クラスにある同名のクラスメソッドと同じです.

...File クラスにある同名のクラスメソッドと同じです.

@param item 連結したいディレクトリ名やファイル名を文字列で与えます。

@see File.join...

Shell#kill(signal, job) -> Integer (102.0)

@todo

...@todo

ジョブにシグナルを送ります。

@param signal

@param job...

Shell#open(path, mode) -> File | Dir (102.0)

path がファイルなら、 File.open path がディレクトリなら、 Dir.open の動作をします。

...がファイルなら、 File.open path がディレクトリなら、 Dir.open の動作をします。

@param path 開きたいパスを指定します。

@param mode アクセスモードを指定します。path がディレクトリの場合は無視されます。

@see File.open, Dir.open...

Shell#pwd -> String (102.0)

カレントディレクトリのパスを文字列で返します。

...カレントディレクトリのパスを文字列で返します。

使用例
r
equire 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"...

Shell#size(file) -> Integer (102.0)

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

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

@param file ファイル名を表す文字列を指定します。

@see FileTest.#size FileTest.#size?...

絞り込み条件を変える

Shell#size?(file) -> Integer | nil (102.0)

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

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

@param file ファイル名を表す文字列を指定します。

@see FileTest.#size FileTest.#size?...

Shell#split(pathname) -> [String] (102.0)

File クラスにある同名のクラスメソッドと同じです.

...File クラスにある同名のクラスメソッドと同じです.

@param pathname パス名を表す文字列を指定します。

@see File.split...

Shell#system_path -> Array (102.0)

コマンドサーチパスの配列を返す。

...コマンドサーチパスの配列を返す。

@param path コマンドサーチパスの配列を指定します。

使用例

r
equire 'shell'
sh = Shell.new
sh.system_path = [ "./" ]
p sh.system_path #=> ["./"]...

Shell#tee(file) -> Shell::Filter (102.0)

実行すると, それらを内容とする Filter オブジェクトを返します.

...と, それらを内容とする Filter オブジェクトを返します.

@param file シェルコマンドtee に与えるファイル名を文字列で指定します。

動作例
r
equire 'shell'
Shell
.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each {...

Shell#test(command, file1, file2 = nil) -> bool | Time | Integer | nil (102.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...Kernel.#test や FileTest のメソッドに処理を委譲します。

@param command 数値、またはサイズが 1 の文字列の場合は Kernel.#test に処理委譲します。
2 文字以上の文字列の場合は FileTest のメソッドとして実行します。

@param...
...す。

@param file2 文字列でファイルへのパスを指定します。

r
equire 'shell'
Shell
.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
r
escue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[:ex...
...ists?, "foo"] # => true
p sh["exists?", "foo"] # => true

@see Kernel.#test, FileTest...

絞り込み条件を変える

Shell#utime(atime, mtime, *filename) -> Integer (102.0)

File クラスにある同名のクラスメソッドと同じです.

...ある同名のクラスメソッドと同じです.

@param filename ファイル名を表す文字列を指定します。

@param atime 最終アクセス時刻を Time か、起算時からの経過秒数を数値で指定します。

@param utime 更新時刻を Time か、起算時からの...
<< < ... 2 3 4 >>