るりまサーチ

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

別のキーワード

  1. string b
  2. _builtin b
  3. b
  4. b string
  5. b _builtin

ライブラリ

クラス

キーワード

検索結果

Gem::Ext::Builder.run(command, results) (21102.0)

@todo

@todo

与えられたコマンドを実行します。

@param command 実行するコマンドを文字列で指定します。

@param results 結果を入れるための配列です。この変数は破壊的に変更されます。

@raise Gem::InstallError コマンドの実行に失敗した場合に発生します。

Coverage.running? -> bool (6201.0)

カバレッジ測定中かどうかを返します。カバレッジの測定中とは、Coverage.start の 呼び出し後から Coverage.result の呼び出し前です。

...から Coverage.result の呼び出し前です。

//emlist[][ruby]{
require 'coverage'
p Coverage.running? #=> false
Coverage.start
p Coverage.running? #=> true
p Coverage.peek_result #=> {}
p Coverage.running? #=> true
p Coverage.result #=> {}
p Coverage.running? #=> false
//}...

ERB.new(str, safe_level=NOT_GIVEN, trim_mode=NOT_GIVEN, eoutvar=NOT_GIVEN, trim_mode: nil, eoutvar: '_erbout') -> ERB (3125.0)

eRubyスクリプト から ERB オブジェクトを生成して返します。

...Rubyスクリプト から ERB オブジェクトを生成して返します。

@param str eRubyスクリプトを表す文字列
@param safe_level eRubyスクリプトが実行されるときのセーフレベル
@param trim_mode 整形の挙動を変更するオプション

@param eoutvar eRuby...
...字列。eRuby スクリプトの中でさらに ERB を使うときに変更
します。通常は指定する必要はありません。

Ruby 2.6.0 から位置引数での safe_level, trim_mode, eoutvar の指定は非推奨です。
Ruby 3.2 で削除されまし...
...定はキーワード引数に移行してください。

//emlist[例][ruby]{
require "erb"

# build data class
class Listings
PRODUCT = { :name => "Chicken Fried Steak",
:desc => "A well messages pattie, breaded and fried.",
:cost => 9.95 }

attr_reader :product, :...

ERB.new(str, safe_level=nil, trim_mode=nil, eoutvar='_erbout') -> ERB (3125.0)

eRubyスクリプト から ERB オブジェクトを生成して返します。

...Rubyスクリプト から ERB オブジェクトを生成して返します。

@param str eRubyスクリプトを表す文字列
@param safe_level eRubyスクリプトが実行されるときのセーフレベル
@param trim_mode 整形の挙動を変更するオプション

@param eoutvar eRuby...
...字列。eRuby スクリプトの中でさらに ERB を使うときに変更
します。通常は指定する必要はありません。

Ruby 2.6.0 から位置引数での safe_level, trim_mode, eoutvar の指定は非推奨です。
Ruby 3.2 で削除されまし...
...定はキーワード引数に移行してください。

//emlist[例][ruby]{
require "erb"

# build data class
class Listings
PRODUCT = { :name => "Chicken Fried Steak",
:desc => "A well messages pattie, breaded and fried.",
:cost => 9.95 }

attr_reader :product, :...

ERB.new(str, trim_mode: nil, eoutvar: '_erbout') -> ERB (3125.0)

eRubyスクリプト から ERB オブジェクトを生成して返します。

...eRubyスクリプト から ERB オブジェクトを生成して返します。

@param str eRubyスクリプトを表す文字列
@param trim_mode 整形の挙動を変更するオプション

@param eoutvar eRubyスクリプトの中で出力をためていく変数の名前を表す文...
...字列。eRuby スクリプトの中でさらに ERB を使うときに変更
します。通常は指定する必要はありません。


//emlist[例][ruby]{
require "erb"

# build data class
class Listings
PRODUCT = { :name => "Chicken Fried Steak",
:desc =...
...ages pattie, breaded and fried.",
:cost => 9.95 }

attr_reader :product, :price

def initialize( product = "", price = "" )
@product = product
@price = price
end

def build
b
= binding
# create and run templates, filling member data variables
ERB.new(<<~'END...

絞り込み条件を変える

Thread.stop -> nil (35.0)

他のスレッドから Thread#run メソッドで再起動されるまで、カレ ントスレッドの実行を停止します。

...ドから Thread#run メソッドで再起動されるまで、カレ
ントスレッドの実行を停止します。

//emlist[例][ruby]{
a = Thread.new { print "a"; Thread.stop; print "c" }
sleep 0.1 while a.status!='sleep'
print "b"
a.run
a.join
# => "abc"
//}

@see Thread#run, Thread#wakeup...