146件ヒット
[101-146件を表示]
(0.036秒)
ライブラリ
- coverage (8)
-
irb
/ extend-command (36) - psych (90)
- win32ole (12)
モジュール
-
IRB
:: ContextExtender (12) -
IRB
:: ExtendCommandBundle (24) - Psych (78)
キーワード
-
const
_ load (12) -
def
_ extend _ command (24) -
install
_ extend _ commands (12) -
load
_ documents (8) -
load
_ file (12) -
load
_ stream (24) -
safe
_ load (19) - start (8)
-
yaml
_ tag (12)
検索結果
先頭5件
- Psych
. load _ stream(yaml , filename=nil) {|obj| . . . } -> () - IRB
:: ContextExtender . def _ extend _ command(cmd _ name , load _ file , *aliases) -> object - IRB
:: ExtendCommandBundle . def _ extend _ command(cmd _ name , cmd _ class , load _ file = nil , *aliases) -> object - IRB
:: ExtendCommandBundle . install _ extend _ commands -> object - Coverage
. start(option = {}) -> nil
-
Psych
. load _ stream(yaml , filename=nil) {|obj| . . . } -> () (6116.0) -
複数の YAML ドキュメントを含むデータを Ruby のオブジェクトに変換します。
...します。
//emlist[例][ruby]{
Psych.load_stream("--- foo\n...\n--- bar\n...") # => ['foo', 'bar']
//}
ブロックありの場合は各オブジェクト引数としてそのブロックを呼び出します。
//emlist[例][ruby]{
list = []
Psych.load_stream("--- foo\n...\n--- bar\n...") do... -
IRB
:: ContextExtender . def _ extend _ command(cmd _ name , load _ file , *aliases) -> object (209.0) -
IRB::Context に cmd_name で指定したメソッドが実行できるように拡張 します。
...IRB::Context クラスのインスタンスメソッドとして定
義してある必要があります。
@param load_file cmd_name で指定したメソッドが定義されたファイル名を指
定します。このファイルは自動的に... -
IRB
:: ExtendCommandBundle . def _ extend _ command(cmd _ name , cmd _ class , load _ file = nil , *aliases) -> object (209.0) -
irb に cmd_name で指定したメソッドが実行できるように拡張します。
...します。
なお、このクラスは IRB::ExtendCommand 以下で定義
する必要があります。
@param load_file 指定したメソッドが定義されたファイル名を指
定します。このファイルは自動的に require さ... -
IRB
:: ExtendCommandBundle . install _ extend _ commands -> object (108.0) -
定義済みの拡張を読み込みます。
...1 つだけ抜粋)
* irb_current_working_workspace
* irb_change_workspace
* irb_workspaces
* irb_push_workspace
* irb_pop_workspace
* irb_load
* irb_require
* irb_source
* irb
* irb_jobs
* irb_fg
* irb_kill
* irb_help
irb/extend-command が require された時にライブラリ内... -
Coverage
. start(option = {}) -> nil (25.0) -
カバレッジの測定を開始します。既に実行されていた場合には何も起こりません。 ただし、カバレッジ計測中に測定対象を変更しようとした場合は、RuntimeError となります。
...l)
load "bool.rb"
bool(0)
pp Coverage.result
# {"bool.rb"=>
# {:lines=>[1, 1, 1, nil, 0, nil, nil],
# :branches=>
# {[:if, 0, 2, 2, 6, 5]=>
# {[:then, 1, 3, 4, 3, 8]=>1, [:else, 2, 5, 4, 5, 9]=>0}},
# :methods=>{[Object, :bool, 1, 0, 7, 3]=>1}}}
Coverage.start(methods: true)
load......"bool.rb"
bool(0)
pp Coverage.result #=> {"bool.rb"=>{:methods=>{[Object, :bool, 1, 0, 7, 3]=>1}}}
//}...