151件ヒット
[1-100件を表示]
(0.012秒)
ライブラリ
- ビルトイン (12)
-
irb
/ extend-command (36) -
mutex
_ m (12) - psych (31)
-
rdoc
/ parser (12) -
rubygems
/ specification (12) - shell (12)
-
shell
/ command-processor (24)
クラス
- Encoding (12)
-
Gem
:: Specification (12) -
Psych
:: Nodes :: Alias (12) -
RDoc
:: Parser (12) - Shell (12)
-
Shell
:: CommandProcessor (24)
モジュール
-
IRB
:: ContextExtender (12) -
IRB
:: ExtendCommandBundle (24) -
Mutex
_ m (12) - Psych (19)
キーワード
-
alias
_ command (18) -
alias
_ extension (12) -
alias
_ map (6) - aliases (12)
-
attribute
_ alias _ singular (12) -
def
_ extend _ command (24) -
define
_ aliases (12) -
irb
_ original _ method _ name (12) - new (12)
-
safe
_ load (19) -
unalias
_ command (12)
検索結果
先頭5件
-
Shell
. unalias _ command(alias) -> () (6236.0) -
commandのaliasを削除します.
...commandのaliasを削除します.
@param alias 削除したいエイリアスの名前を文字列で指定します。
@raise NameError alias で指定したコマンドが無い場合に発生します。
使用例: ls -la | sort -k 5 のような例。
require 'shell'
Shell.def_system_co......mmand("ls")
Shell.alias_command("lsla", "ls", "-a", "-l")
Shell.def_system_command("sort")
sh = Shell.new
sh.transact {
(lsla | sort("-k 5")).each {|l|
puts l
}
}
Shell.unalias_command("lsla")
begin
Shell.unalias_command("lsla")
rescue NameError => err
puts err... -
Shell
. alias _ command(alias , command , *opts) { . . . } -> self (6215.0) -
コマンドの別名(エイリアス)を作成します。 コマンドが無い場合は、Shell.def_system_command などであらかじめ作成します.
...(エイリアス)を作成します。
コマンドが無い場合は、Shell.def_system_command などであらかじめ作成します.
@param alias エイリアスの名前を文字列で指定します.
@param command コマンド名を文字列で指定します.
@param opts command で指......のオプションを指定します.
使用例: ls -la | sort -k 5 のような例。
require 'shell'
Shell.def_system_command("ls")
Shell.alias_command("lsla", "ls", "-a", "-l")
Shell.def_system_command("sort")
sh = Shell.new
sh.transact {
(lsla | sort("-k 5")).each {|l|
pu... -
Shell
:: CommandProcessor . alias _ command(alias , command , *opts) -> self (6211.0) -
@todo
...@todo
@param alias エイリアスの名前を指定します。
@param command コマンド名を指定します。
@param opts コマンドに与えるオプションを指定します。
@raise SyntaxError コマンドのエイリアス作成に失敗した時に発生します。... -
Shell
:: CommandProcessor . alias _ command(alias , command , *opts) { . . . } -> self (6211.0) -
@todo
...@todo
@param alias エイリアスの名前を指定します。
@param command コマンド名を指定します。
@param opts コマンドに与えるオプションを指定します。
@raise SyntaxError コマンドのエイリアス作成に失敗した時に発生します。... -
Shell
:: CommandProcessor . unalias _ command(alias) -> self (6208.0) -
エイリアスを削除します。
...エイリアスを削除します。
@param alias 削除したいエイリアスを指定します。... -
Shell
:: CommandProcessor . alias _ map -> Hash (6118.0) -
Shell::CommandProcessor.alias_command で定義したエイリアスの一覧を返します。
...Shell::CommandProcessor.alias_command で定義したエイリアスの一覧を返します。... -
Gem
:: Specification . attribute _ alias _ singular(singular , plural) -> () (6108.0) -
既に存在する複数形の属性の単数形バージョンを定義します。
...配列に追加するようなヘルパーメソッドを定義するということです。
例:
# このように定義すると
attribute_alias_singular :require_path, :require_paths
# こう書くかわりに
s.require_paths = ['mylib']
# こう書くことができます。
s.req... -
RDoc
:: Parser . alias _ extension(old _ ext , new _ ext) -> bool (6102.0) -
old_ext に登録されたパーサを new_ext でも解析できるようにエイリアスを登 録します。
old_ext に登録されたパーサを new_ext でも解析できるようにエイリアスを登
録します。
@param old_ext 拡張子を文字列で指定します。
@param new_ext 拡張子を文字列で指定します。
@return エイリアスが登録された場合は true を返します。old_ext にパーサ
が登録されていない場合、エイリアスが登録されずに false を返しま
す。 -
Encoding
. aliases -> Hash (6101.0) -
エンコーディングの別名に対して元の名前を対応づけるハッシュを返します。
...エンコーディングの別名に対して元の名前を対応づけるハッシュを返します。
//emlist[例][ruby]{
p Encoding.aliases
#=> {"BINARY"=>"ASCII-8BIT", "ASCII"=>"US-ASCII", "ANSI_X3.4-1968"=>"US-ASCII",
# "SJIS"=>"Windows-31J", "eucJP"=>"EUC-JP", "CP932"=>"Windows-31J"}
//}... -
Mutex
_ m . define _ aliases(klass) -> Class (6101.0) -
ユーザが直接、使うことはありません。
ユーザが直接、使うことはありません。 -
Psych
:: Nodes :: Alias . new(anchor) -> Psych :: Nodes :: Alias (3118.0) -
新たな Alias オブジェクトを生成します。
...新たな Alias オブジェクトを生成します。
anchor で指す先の anchor を指定します。
@param anchor 指す先の anchor... -
IRB
:: ContextExtender . def _ extend _ command(cmd _ name , load _ file , *aliases) -> object (101.0) -
IRB::Context に cmd_name で指定したメソッドが実行できるように拡張 します。
...す。
@param load_file cmd_name で指定したメソッドが定義されたファイル名を指
定します。このファイルは自動的に require されます。
@param aliases cmd_name の別名を Symbol で指定します。複数指定する事ができます。...