るりまサーチ

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

別のキーワード

  1. openssl g
  2. openssl g=
  3. dh g
  4. dsa g
  5. dsa g=

キーワード

検索結果

<< 1 2 3 ... > >>

Shell#glob(pattern) -> Shell::Filter (23220.0)

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

...attern シェルコマンド glob に与えるパターンを指定します。
パターンの書式については、Dir.[] を参照してください。

動作例
require 'shell'
Shell
.def_system_command("head")
sh = Shell.new
sh.transact {
g
lob("*.txt").to_a.each { |f...

Shell#debug -> bool | Integer (23101.0)

@todo

@todo

Shell#debug=(flag) (23101.0)

@todo

@todo

Shell#debug? -> bool | Integer (23101.0)

@todo

@todo

Shell#grpowned?(file) -> bool (23101.0)

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

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

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

@see FileTest.#grpowned?...

絞り込み条件を変える

Shell#setgid?(file) -> bool (23101.0)

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

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

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

@see FileTest.#setgid?...

Shell#getwd -> String (20113.0)

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

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

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

Etc::Passwd#shell -> String (18202.0)

このユーザのログインシェルを返します。

このユーザのログインシェルを返します。

Shell#echo(*strings) -> Shell::Filter (17220.0)

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

...Filter オブジェクトを返します.

@param strings シェルコマンド echo に与える引数を文字列で指定します。

動作例
require 'shell'
Shell
.def_system_command("head")
sh = Shell.new
sh.transact {
g
lob("*.txt").to_a.each { |file|
file.chomp!
cat(...

Shell#[](command, file1, file2 = nil) -> bool | Time | Integer | nil (17119.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#test(command, file1, file2 = nil) -> bool | Time | Integer | nil (17119.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#cwd -> String (17113.0)

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

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

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

Shell#dir -> String (17113.0)

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

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

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

Shell#pwd -> String (17113.0)

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

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

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

Shell#basename(filename, suffix = "") -> String (17101.0)

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

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

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

@param suffix サフィックスを文字列で与えます。'.*' という文字列を与えた場合、'*' はワイルドカードとして働き
'.' を含まない任意の文字列にマッチします。

@see File.basename

絞り込み条件を変える

Shell#chmod(mode, *filename) -> Integer (17101.0)

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

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

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

@param mode chmod(2) と同様に整数で指定します。

@see File.chmod
<< 1 2 3 ... > >>