るりまサーチ

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

別のキーワード

  1. _builtin at
  2. _builtin values_at
  3. time at
  4. dbm values_at
  5. csv values_at

ライブラリ

クラス

キーワード

検索結果

<< 1 2 3 ... > >>

Gem::Installer#installation_satisfies_dependency?(dependency) -> bool (24601.0)

登録されているソースインデックスが与えられた依存関係を 満たすことができる場合は、真を返します。そうでない場合は偽を返します。

...登録されているソースインデックスが与えられた依存関係を
満たすことができる場合は、真を返します。そうでない場合は偽を返します。

@param dependency Gem::Dependency のインスタンスを指定します。...

Gem::DependencyList#dependency_order -> [Gem::Specification] (24401.0)

依存する Gem の数が少ない順にソートされた Gem::Specification のリストを返します。

...依存する Gem の数が少ない順にソートされた Gem::Specification のリストを返します。

このことは、インストール済みの Gem を削除するときに便利です。
このメソッドで返された順にインストール済みの Gem 削除すると、
依存...
...If there are circular dependencies (yuck!), then gems will be
returned in order until only the circular dependents and anything
they reference are left. Then arbitrary gemspecs will be returned
until the circular dependency is broken, after which gems will be
returned in dependency order again....

Gem::DependencyInstaller#gather_dependencies -> Array (24301.0)

依存関係を無視するように指定されていない限り、インストールするように指定された Gem が依存している Gem の情報を集めて返します。

依存関係を無視するように指定されていない限り、インストールするように指定された
Gem が依存している Gem の情報を集めて返します。

Logger::Formatter#datetime_format=(format) (21419.0)

ログの日時フォーマットをセットします。

...mat 日時のフォーマット文字列。Time#strftime で使用するフォーマット文字列と
同じものを使用できます。

//emlist[例][ruby]{
require 'logger'

formatter = Logger::Formatter.new
formatter.datetime_format # => nil
formatter.datetime_format = '%Y-%m-%d...
...%H:%M:%S' # => "%Y-%m-%d %H:%M:%S"
formatter.datetime_format # => "%Y-%m-%d %H:%M:%S"
//}

@see Time#strftime...

Gem::Specification#development_dependencies -> Array (21301.0)

この Gem が依存している Gem のリストを返します。

この Gem が依存している Gem のリストを返します。

絞り込み条件を変える

Logger::Formatter#datetime_format -> String (21301.0)

ログの日時フォーマットを取得します。

ログの日時フォーマットを取得します。


@see Time#strftime

Matrix::EigenvalueDecomposition#d -> Matrix (21202.0)

固有値を対角成分に並べた行列を返します。

固有値を対角成分に並べた行列を返します。

Logger#datetime_format=(format) (18431.0)

ログに記録する時の日付のフォーマットをセットします。

...ger.new(STDOUT)

logger.datetime_format # => nil
logger.debug("test")
logger.datetime_format = '%Y/%m/%dT%H:%M:%S.%06d' # => "%Y/%m/%dT%H:%M:%S.%06d"
logger.datetime_format # => "%Y/%m/%dT%H:%M:%S.%06d"
logger.debug("test")

# => D, [2019-03-13T23:52:13.674385 #17393] DEBUG -- : test
# D, [2019/0...
...3/13T23:52:13.000012#17393] DEBUG -- : test
//}

@see Time#strftime, Logger#datetime_format...

Array#repeated_combination(n) -> Enumerator (18401.0)

サイズ n の重複組み合わせをすべて生成し、それを引数としてブロックを実行 します。

...得られる組み合わせの順序は保証されません。ブロックなしで呼び出されると、
組み合わせを生成する Enumerator オブジェクトを返します。

@param n 生成される配列のサイズを整数で指定します。
整数以外のオブジェ...
...epeated_combination(1).to_a #=> [[1], [2], [3]]
a.repeated_combination(2).to_a #=> [[1,1],[1,2],[1,3],[2,2],[2,3],[3,3]]
a.repeated_combination(3).to_a #=> [[1,1,1],[1,1,2],[1,1,3],[1,2,2],[1,2,3],
# [1,3,3],[2,2,2],[2,2,3],[2,3,3],[3,3,3]]
a.repeated_combinatio...
...3,3]]
a.repeated_combination(0).to_a #=> [[]] # one combination of length 0
//}

ブロックが与えられた場合、作成した配列の各要素を引数としてブロックを実
行して self を返します。

//emlist[例][ruby]{
a = [1, 2, 3]
result = []
a.repeated_combination(3) {|e|...
<< 1 2 3 ... > >>