クラス
- Array (11)
- Shell (729)
-
Shell
:: AppendFile (12) -
Shell
:: AppendIO (12) -
Shell
:: BuiltInCommand (12) -
Shell
:: Cat (12) -
Shell
:: CommandProcessor (498) -
Shell
:: Concat (12) -
Shell
:: Echo (12) -
Shell
:: Filter (474) -
Shell
:: Glob (12) -
Shell
:: ProcessController (144) -
Shell
:: SystemCommand (96) -
Shell
:: Tee (12) -
Shell
:: Void (12) - String (22)
モジュール
- Shellwords (77)
キーワード
- + (6)
- < (6)
- > (6)
- >> (6)
- AppendFile (6)
- AppendIO (6)
- BuiltInCommand (6)
- CantApplyMethod (6)
- CantDefine (6)
- Cat (6)
- CommandNotFound (6)
- CommandProcessor (6)
- Concat (6)
- DirStackEmpty (6)
- Echo (6)
- Error (6)
- Filter (6)
- Glob (6)
- NoDelegateMethods (6)
- ProcessController (6)
- Shell (6)
- Shellwords (11)
- SystemCommand (6)
- Tee (6)
-
USING
_ AT _ EXIT _ WHEN _ PROCESS _ EXIT (6) - Void (6)
- [] (18)
- activate (6)
- active? (12)
-
active
_ job? (6) -
active
_ jobs (6) -
active
_ jobs _ exist? (6) -
active
_ process _ controllers (6) -
add
_ delegate _ command _ to _ shell (6) -
add
_ schedule (6) -
alias
_ command (18) -
alias
_ map (6) - append (18)
- atime (18)
- basename (18)
-
block
_ output _ synchronize (6) - blockdev? (18)
- cascade (6)
- cascade= (6)
- cat (18)
- cd (12)
- chardev? (18)
- chdir (6)
-
check
_ point (18) - chmod (18)
- chown (18)
- command (6)
-
command
_ processor (6) - concat (18)
- ctime (18)
- cwd (6)
- debug (12)
- debug= (12)
- debug? (12)
-
debug
_ output _ exclusive _ unlock (3) -
debug
_ output _ lock (6) -
debug
_ output _ locked? (6) -
debug
_ output _ synchronize (6) -
debug
_ output _ try _ lock (6) -
debug
_ output _ unlock (6) -
def
_ builtin _ commands (6) -
def
_ system _ command (12) -
default
_ record _ separator (6) -
default
_ record _ separator= (6) -
default
_ system _ path (6) -
default
_ system _ path= (6) - delete (18)
- dir (6)
-
dir
_ stack (6) - directory? (18)
- dirname (18)
- dirs (6)
- each (48)
-
each
_ active _ object (6) - echo (18)
- escape (11)
- executable? (18)
-
executable
_ real? (18) - exist? (18)
- exists? (18)
- file? (18)
-
find
_ system _ command (18) -
finish
_ all _ jobs (18) - flush (6)
- foreach (18)
- ftype (18)
- getwd (6)
- glob (18)
- grpowned? (18)
- identical? (18)
- inactivate (6)
- initialize (6)
- input (6)
- input= (24)
- inspect (6)
-
install
_ builtin _ commands (6) -
install
_ system _ commands (12) - jobs (12)
-
jobs
_ exist? (6) - join (29)
- kill (12)
-
kill
_ job (6) - link (18)
- lstat (18)
-
method
_ added (6) - mkdir (18)
- mtime (18)
- name (6)
- new (78)
- notify (36)
- open (18)
- out (18)
- owned? (18)
- pipe? (18)
- popd (6)
- popdir (6)
-
process
_ controller (6) -
process
_ controllers _ exclusive (6) - pushd (6)
- pushdir (6)
- pwd (6)
- readable? (18)
-
readable
_ real? (18) - readlink (18)
-
record
_ separator (6) -
record
_ separator= (6) - rehash (18)
- rename (18)
- rm (18)
- rmdir (18)
-
run
_ config (6) - setgid? (18)
- setuid? (18)
- sfork (6)
- shell (6)
- shellescape (22)
- shelljoin (22)
- shellsplit (22)
- shellwords (11)
- size (18)
- size? (18)
- socket? (18)
- split (29)
- start (6)
-
start
_ export (6) -
start
_ import (6) -
start
_ job (6) - stat (18)
- sticky? (18)
-
super
_ each (6) - symlink (18)
- symlink? (18)
- system (18)
-
system
_ path (6) -
system
_ path= (6) - tee (18)
- terminate (6)
-
terminate
_ job (6) - test (18)
-
to
_ a (6) -
to
_ s (6) - transact (18)
- truncate (18)
- umask (6)
- umask= (6)
-
unalias
_ command (12) -
undef
_ system _ command (12) - unlink (18)
- utime (18)
- verbose (12)
- verbose= (12)
- verbose? (12)
- wait? (12)
-
wait
_ all _ jobs _ execution (6) -
wait
_ to _ finish _ all _ process _ controllers (6) -
waiting
_ job? (6) -
waiting
_ jobs (6) -
waiting
_ jobs _ exist? (6) -
world
_ readable? (18) -
world
_ writable? (18) - writable? (18)
-
writable
_ real? (18) - zero? (18)
- | (6)
検索結果
先頭5件
-
Shell (2.0)
-
Shell オブジェクトはカレントディレクトリを持ち, コマンド実行はそこからの相対パスになります.
...Shell オブジェクトはカレントディレクトリを持ち,
コマンド実行はそこからの相対パスになります.... -
Shell
# [](command , file1 , file2 = nil) -> bool | Time | Integer | nil (2.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
# append(to , filter) -> Shell :: AppendFile | Shell :: AppendIO (2.0) -
@todo
...@todo
@param to 文字列か IO を指定します。
@param filter Shell::Filter のインスタンスを指定します。... -
Shell
# atime(filename) -> Time (2.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列か IO オブジェクトを指定します。
@see File.atime -
Shell
# basename(filename , suffix = "") -> String (2.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@param suffix サフィックスを文字列で与えます。'.*' という文字列を与えた場合、'*' はワイルドカードとして働き
'.' を含まない任意の文字列にマッチします。
@see File.basename -
Shell
# blockdev?(file) -> bool (2.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#blockdev? -
Shell
# cat(*files) -> Shell :: Filter (2.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...@param files シェルコマンド cat に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | te... -
Shell
# cd(path , &block) -> self (2.0) -
カレントディレクトリをpathにする. イテレータとして呼ばれたときには ブロック実行中のみカレントディレクトリを変更する.
...レクトリを文字列で指定します.
@param block path で指定したディレクトリで行う操作をブロックで指定します.
使用例
require 'shell'
sh = Shell.new
sh.transact {
cd("/tmp"){
p cwd #=> "/tmp"
}
p cwd #=> "/Users/kouya/rbmanual"
}... -
Shell
# chardev?(file) -> bool (2.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#chardev? -
Shell
# chdir(path , &block) -> self (2.0) -
カレントディレクトリをpathにする. イテレータとして呼ばれたときには ブロック実行中のみカレントディレクトリを変更する.
...レクトリを文字列で指定します.
@param block path で指定したディレクトリで行う操作をブロックで指定します.
使用例
require 'shell'
sh = Shell.new
sh.transact {
cd("/tmp"){
p cwd #=> "/tmp"
}
p cwd #=> "/Users/kouya/rbmanual"
}... -
Shell
# check _ point (2.0) -
@todo
@todo -
Shell
# chmod(mode , *filename) -> Integer (2.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@param mode chmod(2) と同様に整数で指定します。
@see File.chmod -
Shell
# chown(owner , group , *filename) -> Integer (2.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param owner chown(2) と同様に数値で指定します。nil または -1 を指定することで、オーナーを現在のままにすることができます。
@param group chown(2) と同様に数値で指定します。nil または -1 を指定することで、グループを現在のままにすることができます。
@param filename ファイル名を表す文字列を指定します。
@see File.chown -
Shell
# command _ processor -> Shell :: CommandProcessor (2.0) -
@todo
@todo -
Shell
# concat(*jobs) -> Shell :: Concat (2.0) -
@todo
@todo -
Shell
# ctime(filename) -> Time (2.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列か IO オブジェクトを指定します。
@see File.ctime -
Shell
# cwd -> String (2.0) -
カレントディレクトリのパスを文字列で返します。
...カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"...