44件ヒット
[1-44件を表示]
(0.131秒)
ライブラリ
- ビルトイン (11)
-
irb
/ inspector (11) - rake (22)
クラス
-
IRB
:: Inspector (11) -
Rake
:: InvocationChain (22)
オブジェクト
- ENV (11)
キーワード
- append (11)
-
def
_ inspector (11) - new (11)
検索結果
先頭4件
-
IRB
:: Inspector . def _ inspector(key , arg = nil) { |v| . . . } -> object (26220.0) -
新しい実行結果の出力方式を定義します。
...@param key conf.inspect_mode や IRB.conf[:INSPECT_MODE] に指定するキー
オブジェクトを指定します。配列を指定した場合は配列中の要素全
てが対象になります。
@param arg ブロックを指定する場合には、inspect_mode の初......quire が必要な場合
などに、proc { require "foo" } といった指定を行います。
ブロックを指定しない場合には、実行結果の出力のための手続きオ
ブジェクトを指定します。
例.
# .irbrc
IRB::Inspector.def_ins......pector([:test]){ |v| v.to_s * 2 }
$ irb --inspect test
irb(main):001:0> :abc # => abcabc
@see lib:irb#inspect_mode... -
ENV
. to _ s -> String (21218.0) -
環境変数を文字列化します。 Hash#to_s と同じように動作します。
...環境変数を文字列化します。 Hash#to_s と同じように動作します。... -
Rake
:: InvocationChain . append(task _ name , chain) -> Rake :: InvocationChain (9407.0) -
与えられたタスク名を第二引数の Rake::InvocationChain に追加します。
...れたタスク名を第二引数の Rake::InvocationChain に追加します。
@param task_name タスク名を指定します。
@param chain 既に存在する Rake::InvocationChain のインスタンスを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default:......:test_rake_app
task :test_rake_app do
chain = Rake::InvocationChain::EMPTY
b = Rake::InvocationChain.append("task_a", chain)
b.to_s # => "TOP => task_a"
end
//}... -
Rake
:: InvocationChain . new(task _ name , tail) (9113.0) -
与えられたタスク名と一つ前の Rake::InvocationChain を用いて自身を初期化します。
...e::InvocationChain を用いて自身を初期化します。
@param task_name タスク名を指定します。
@param tail 一つ前の Rake::InvocationChain を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
tail =......Rake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
tail.to_s # => "TOP => task_a"
b = Rake::InvocationChain.new("task_b", tail)
b.to_s # => "TOP => task_a => task_b"
end
//}...