るりまサーチ (Ruby 2.3.0)

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

別のキーワード

  1. string []=
  2. string slice
  3. string slice!
  4. string []
  5. string gsub!

キーワード

検索結果

Shell::SystemCommand#command -> String (63616.0)

@todo

@todo

コマンド名を返します。

Shell::SystemCommand#name -> String (18316.0)

@todo

@todo

コマンド名を返します。

Shell::CommandProcessor#echo(*strings) -> Shell::Filter (9325.0)

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

...す.

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

動作例
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) | tee...

Shell::SystemCommand#notify(*opts) -> String (9313.0)

@todo

...@todo

@param opts

@see Shell#notify...

Shell::SystemCommand#notify(*opts) {|message| ... } -> String (9313.0)

@todo

...@todo

@param opts

@see Shell#notify...

絞り込み条件を変える

Shell::CommandProcessor#basename(filename, suffix = "") -> String (9310.0)

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

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

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

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

@see File.basename

Shell::CommandProcessor#dirname(filename) -> String (9310.0)

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

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

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

@see File.dirname

Shell::CommandProcessor#expand_path(path) -> String (9310.0)

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

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

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

@see File.expand_path

Shell::CommandProcessor#ftype(filename) -> String (9310.0)

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

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

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

@see File.ftype

Shell::CommandProcessor#join(*item) -> String (9310.0)

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

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

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

@see File.join

絞り込み条件を変える

Shell::CommandProcessor#readlink(path) -> String (9310.0)

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

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

@param path シンボリックリンクを表す文字列を指定します。

@see File.readlink

Shell::CommandProcessor#split(pathname) -> [String] (9310.0)

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

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

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

@see File.split

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

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

...す.

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

動作例
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) | tee...

Shell::Filter#to_a -> [String] (328.0)

実行結果を文字列の配列で返します。

...実行結果を文字列の配列で返します。

require 'shell'
Shell
.def_system_command("wc")
sh = Shell.new
puts sh.cat("/etc/passwd").to_a...

Shell::Filter#to_s -> String (328.0)

実行結果を文字列で返します。

...実行結果を文字列で返します。

require 'shell'
Shell
.def_system_command("wc")
sh = Shell.new

sh.transact {
puts (cat("/etc/passwd") | wc("-l")).to_s
}...

絞り込み条件を変える

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

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

...す.

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

動作例
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) | tee...