198件ヒット
[1-100件を表示]
(0.066秒)
別のキーワード
ライブラリ
- shell (198)
キーワード
- [] (6)
- basename (6)
- chmod (6)
- chown (6)
- cwd (6)
- debug (6)
- debug= (6)
- debug? (6)
- delete (6)
- dir (6)
-
dir
_ stack (6) - dirname (6)
- dirs (6)
- echo (6)
- ftype (6)
- getwd (6)
- glob (6)
- grpowned? (6)
- join (6)
- kill (6)
- pwd (6)
- readlink (6)
-
record
_ separator (6) - rm (6)
- setgid? (6)
- size (6)
- size? (6)
- split (6)
- test (6)
- truncate (6)
- utime (6)
- verbose= (6)
検索結果
先頭5件
-
Shell
# debug -> bool | Integer (6102.0) -
@todo
@todo -
Shell
# debug=(flag) (6102.0) -
@todo
@todo -
Shell
# debug? -> bool | Integer (6102.0) -
@todo
@todo -
Shell
# glob(pattern) -> Shell :: Filter (6102.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...attern シェルコマンド glob に与えるパターンを指定します。
パターンの書式については、Dir.[] を参照してください。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |f... -
Shell
# grpowned?(file) -> bool (6102.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#grpowned?... -
Shell
# setgid?(file) -> bool (6102.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#setgid?... -
Shell
# getwd -> String (3102.0) -
カレントディレクトリのパスを文字列で返します。
...カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"... -
Shell
# [](command , file1 , file2 = nil) -> bool | Time | Integer | nil (102.0) -
Kernel.#test や FileTest のメソッドに処理を委譲します。
...イルへのパスを指定します。
@param file2 文字列でファイルへのパスを指定します。
require 'shell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "... -
Shell
# basename(filename , suffix = "") -> String (102.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@param suffix サフィックスを文字列で与えます。'.*' という文字列を与えた場合、'*' はワイルドカードとして働き
'.' を含まない任意の文字列にマッチします。
@see File.basename -
Shell
# chmod(mode , *filename) -> Integer (102.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@param mode chmod(2) と同様に整数で指定します。
@see File.chmod -
Shell
# chown(owner , group , *filename) -> Integer (102.0) -
File クラスにある同名のクラスメソッドと同じです.
...様に数値で指定します。nil または -1 を指定することで、オーナーを現在のままにすることができます。
@param group chown(2) と同様に数値で指定します。nil または -1 を指定することで、グループを現在のままにすることがで... -
Shell
# cwd -> String (102.0) -
カレントディレクトリのパスを文字列で返します。
...カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"... -
Shell
# delete(*filename) -> Integer (102.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.delete -
Shell
# dir -> String (102.0) -
カレントディレクトリのパスを文字列で返します。
...カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"... -
Shell
# dir _ stack -> [String] (102.0) -
@todo
@todo -
Shell
# dirname(filename) -> String (102.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.dirname -
Shell
# dirs -> [String] (102.0) -
@todo
@todo