168件ヒット
[1-100件を表示]
(0.166秒)
ライブラリ
- ビルトイン (54)
- erb (12)
- mkmf (24)
- optparse (12)
- pathname (12)
- rake (12)
-
rubygems
/ specification (12) - shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6)
クラス
- ERB (12)
-
Gem
:: Specification (12) - Mutex (2)
- OptionParser (12)
- Pathname (12)
-
RDoc
:: Options (12) - Rational (12)
- Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - Thread (18)
-
Thread
:: Mutex (10) - ThreadGroup (12)
モジュール
- Kernel (36)
キーワード
- add (12)
-
add
_ runtime _ dependency (12) - desc (12)
-
dry
_ run= (12) -
report
_ on _ exception (9) -
report
_ on _ exception= (9) - sleep (12)
- truncate (42)
-
try
_ run (24)
検索結果
先頭5件
-
ERB
# run(b=TOPLEVEL _ BINDING) -> nil (18214.0) -
ERB を b の binding で実行し、結果を標準出力へ印字します。
...ERB を b の binding で実行し、結果を標準出力へ印字します。
@param b eRubyスクリプトが実行されるときのbinding
//emlist[例][ruby]{
require 'erb'
erb = ERB.new("test <%= test1 %>\ntest <%= test2 %>\n")
test1 = "foo"
test2 = "bar"
erb.run
# test foo
# test bar
//}... -
Gem
:: Specification # add _ runtime _ dependency(gem , *requirements) -> [Gem :: Dependency] (12313.0) -
この gem の RUNTIME 依存性を追加します。 実行時に必要となる gem を指定します。
...この gem の RUNTIME 依存性を追加します。
実行時に必要となる gem を指定します。
//emlist[][ruby]{
# https://github.com/rurema/bitclust/blob/v1.2.3/bitclust-core.gemspec#L25
s.add_runtime_dependency "progressbar", ">= 1.9.0", "< 2.0"
//}
@param gem 依存する gem の......名前か Gem::Dependency のインスタンスを指定します。
@param requirements バージョンの必要条件を 0 個以上指定します。デフォルトは ">= 0" です。
@see Gem::Specification#add_development_dependency, Gem::Dependency... -
Shell
:: CommandProcessor # truncate(path , length) -> 0 (9213.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param path パスを表す文字列を指定します。
@param length 変更したいサイズを整数で与えます。
@see File.truncate... -
RDoc
:: Options # dry _ run=(val) (9130.0) -
val に true を指定した場合、コマンドライン引数の --dry-run オプションと 同様の指定を行います。
...val に true を指定した場合、コマンドライン引数の --dry-run オプションと
同様の指定を行います。
@param val --dry-run オプションと同じ指定を行う場合は true、そうでない
場合は false を指定します。... -
Pathname
# truncate(length) -> 0 (9107.0) -
File.truncate(self.to_s, length) と同じです。
...File.truncate(self.to_s, length) と同じです。
@param length 変更したいサイズを整数で与えます。
@see File.truncate... -
Kernel
# try _ run(src , opt = "") -> bool | nil (6215.0) -
与えられたソースコードが、コンパイルやリンクできるかどうか検査します。
...ンパイル前に評価されます。
ブロック内でソースコードを変更することができます。
@param src C のソースコードを指定します。
@param opt リンカに渡すオプションを指定します。
$CFLAGS, $LDFLAGS もリンカには渡されま... -
Kernel
# try _ run(src , opt = "") { . . . } -> bool | nil (6215.0) -
与えられたソースコードが、コンパイルやリンクできるかどうか検査します。
...ンパイル前に評価されます。
ブロック内でソースコードを変更することができます。
@param src C のソースコードを指定します。
@param opt リンカに渡すオプションを指定します。
$CFLAGS, $LDFLAGS もリンカには渡されま... -
Shell
# truncate(path , length) -> 0 (6213.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param path パスを表す文字列を指定します。
@param length 変更したいサイズを整数で与えます。
@see File.truncate... -
Shell
:: Filter # truncate(path , length) -> 0 (6213.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param path パスを表す文字列を指定します。
@param length 変更したいサイズを整数で与えます。
@see File.truncate... -
Thread
# report _ on _ exception -> bool (6125.0) -
真の場合、そのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
...Thread.report_on_exception です。
@param newstate スレッド実行中に例外発生した場合、その内容を報告するかどうかを true か false で指定します。
//emlist[例][ruby]{
a = Thread.new{ Thread.stop; raise }
a.report_on_exception = true
a.report_on_exception #......a.run
# => #<Thread:0x00007fc3f48c7908@(irb):1 run> terminated with exception (report_on_exception is true):
# Traceback (most recent call last):
# (irb):1:in `block in irb_binding': unhandled exception
# #<Thread:0x00007fc3f48c7908@(irb):1 dead>
b = Thread.new{ Thread.stop; raise }
b.repor......t_on_exception = false
b.run # => #<Thread:0x00007fc3f48aefc0@(irb):4 dead>
//}
@see Thread.report_on_exception... -
Thread
# report _ on _ exception=(newstate) (6125.0) -
真の場合、そのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
...Thread.report_on_exception です。
@param newstate スレッド実行中に例外発生した場合、その内容を報告するかどうかを true か false で指定します。
//emlist[例][ruby]{
a = Thread.new{ Thread.stop; raise }
a.report_on_exception = true
a.report_on_exception #......a.run
# => #<Thread:0x00007fc3f48c7908@(irb):1 run> terminated with exception (report_on_exception is true):
# Traceback (most recent call last):
# (irb):1:in `block in irb_binding': unhandled exception
# #<Thread:0x00007fc3f48c7908@(irb):1 dead>
b = Thread.new{ Thread.stop; raise }
b.repor......t_on_exception = false
b.run # => #<Thread:0x00007fc3f48aefc0@(irb):4 dead>
//}
@see Thread.report_on_exception...