ライブラリ
- English (2)
- ビルトイン (2)
- etc (3)
- forwardable (4)
-
irb
/ inspector (1) - matrix (5)
-
net
/ imap (1) - openssl (1)
- psych (13)
- rss (2)
-
rubygems
/ command (1) -
rubygems
/ dependency _ list (1) -
rubygems
/ specification (2)
クラス
- Array (1)
-
Gem
:: Command (1) -
Gem
:: DependencyList (1) -
Gem
:: Specification (2) - Matrix (2)
-
Matrix
:: EigenvalueDecomposition (1) - Module (1)
-
Net
:: IMAP (1) -
Psych
:: Visitors :: YAMLTree (10) -
RDoc
:: Options (1) - Vector (2)
モジュール
- DublinCoreModel (2)
- Etc (3)
- Forwardable (2)
- Kernel (2)
- OpenSSL (1)
- SingleForwardable (2)
キーワード
-
$ ORS (1) -
$ OUTPUT _ RECORD _ SEPARATOR (1) - << (1)
- INSPECTORS (1)
- NOINFERIORS (1)
-
SC
_ NPROCESSORS _ CONF (1) -
SC
_ NPROCESSORS _ ONLN (1) - Visitor (1)
- Visitors (1)
- YAMLTree (1)
- ancestors (1)
-
column
_ vectors (1) -
dc
_ contributors (1) -
dc
_ creators (1) -
def
_ delegators (2) -
def
_ instance _ delegators (1) -
def
_ single _ delegators (1) - eigenvectors (1)
- errors (1)
-
extra
_ accessors (1) - finish (1)
- finished (1)
- finished? (1)
- independent? (2)
- new (1)
- nprocessors (1)
- push (1)
-
rb
_ mod _ ancestors (1) -
row
_ vectors (1) -
show
_ lookup _ failure (1) -
spec
_ predecessors (1) - start (1)
- started (1)
- started? (1)
- tree (1)
-
values
_ at (1)
検索結果
先頭5件
-
Kernel
$ $ ORS -> String | nil (18304.0) -
$\ の別名
$\ の別名
require "English"
print "hoge\nhuga\n"
$OUTPUT_RECORD_SEPARATOR = "\n"
print "fuge"
print "ugo"
# end of sample.rb
ruby sample.rb
hoge
huga
fuge
ugo -
DublinCoreModel
# dc _ contributors (18301.0) -
@todo
@todo -
DublinCoreModel
# dc _ creators (18301.0) -
@todo
@todo -
Etc
. # nprocessors -> Integer (18301.0) -
有効な CPU コア数を返します。
有効な CPU コア数を返します。
//emlist[][ruby]{
require 'etc'
p Etc.nprocessors #=> 4
//} -
Forwardable
# def _ delegators(accessor , *methods) -> () (18301.0) -
メソッドの委譲先をまとめて設定します。
メソッドの委譲先をまとめて設定します。
@param accessor 委譲先のオブジェクト
@param methods 委譲するメソッドのリスト
委譲元のオブジェクトで methods のそれぞれのメソッドが呼び出された場合に、
委譲先のオブジェクトの同名のメソッドへ処理が委譲されるようになります。
def_delegators は def_instance_delegators の別名になります。
また、以下の 2 つの例は同じ意味です。
def_delegators :@records, :size, :<<, :map
def_delegator :@reco... -
Forwardable
# def _ instance _ delegators(accessor , *methods) -> () (18301.0) -
メソッドの委譲先をまとめて設定します。
メソッドの委譲先をまとめて設定します。
@param accessor 委譲先のオブジェクト
@param methods 委譲するメソッドのリスト
委譲元のオブジェクトで methods のそれぞれのメソッドが呼び出された場合に、
委譲先のオブジェクトの同名のメソッドへ処理が委譲されるようになります。
def_delegators は def_instance_delegators の別名になります。
また、以下の 2 つの例は同じ意味です。
def_delegators :@records, :size, :<<, :map
def_delegator :@reco... -
Gem
:: DependencyList # spec _ predecessors -> Hash (18301.0) -
@todo ???
@todo ???
Return a hash of predecessors. <tt>result[spec]</tt> is an
Array of gemspecs that have a dependency satisfied by the named
spec. -
Gem
:: Specification # authors -> Array (18301.0) -
作成者の名前の配列を返します。
作成者の名前の配列を返します。 -
Gem
:: Specification # authors=(names) (18301.0) -
作成者の名前の配列をセットします。
作成者の名前の配列をセットします。 -
Matrix
# column _ vectors -> [Vector] (18301.0) -
自分自身を列ベクトルの配列として返します。
自分自身を列ベクトルの配列として返します。
//emlist[例][ruby]{
require 'matrix'
a1 = [ 1, 2, 3]
a2 = [10, 15, 20]
a3 = [-1, -2, 1.5]
m = Matrix[a1, a2, a3]
p m.column_vectors # => [Vector[1, 10, -1], Vector[2, 15, -2], Vector[3, 20, 1.5]]
//} -
Matrix
# row _ vectors -> [Vector] (18301.0) -
自分自身を行ベクトルの配列として返します。
自分自身を行ベクトルの配列として返します。
//emlist[例][ruby]{
require 'matrix'
a1 = [ 1, 2, 3]
a2 = [10, 15, 20]
a3 = [-1, -2, 1.5]
m = Matrix[a1, a2, a3]
p m.row_vectors # => [Vector[1, 2, 3], Vector[10, 15, 20], Vector[-1, -2, 1.5]]
//} -
Matrix
:: EigenvalueDecomposition # eigenvectors -> [Vector] (18301.0) -
右固有ベクトルを配列で返します。
右固有ベクトルを配列で返します。 -
Module
# ancestors -> [Class , Module] (18301.0) -
クラス、モジュールのスーパークラスとインクルードしているモジュール を優先順位順に配列に格納して返します。
クラス、モジュールのスーパークラスとインクルードしているモジュール
を優先順位順に配列に格納して返します。
//emlist[例][ruby]{
module Foo
end
class Bar
include Foo
end
class Baz < Bar
p ancestors
p included_modules
p superclass
end
# => [Baz, Bar, Foo, Object, Kernel, BasicObject]
# => [Foo, Kernel]
# => Bar
//}
@see Module#included_modules
... -
Net
:: IMAP :: NOINFERIORS -> Symbol (18301.0) -
「:Noinferiors」というシンボルを返します。
「:Noinferiors」というシンボルを返します。
このメールボックスの
下に子レベルの階層が存在不可能であることを意味します。
LIST応答の属性
(Net::IMAP#list、Net::IMAP::MailboxList#attr)
として用いられます。
詳しくは 2060 を参照してください。 -
OpenSSL
. # errors -> [String] (18301.0) -
OpenSSL のエラーキューに残っているエラー文字列を返します。
OpenSSL のエラーキューに残っているエラー文字列を返します。
通常、エラーキューはこの拡張ライブラリが空にするため、
これは空の配列を返します。もしそうでないならば
このライブラリのバグです。 -
RDoc
:: Options # extra _ accessors -> Regexp | nil (18301.0) -
コマンドライン引数の --accessor オプションで指定したアクセサの名前すべ てにマッチする正規表現オブジェクトを返します。
コマンドライン引数の --accessor オプションで指定したアクセサの名前すべ
てにマッチする正規表現オブジェクトを返します。
指定しなかった場合は nil を返します。 -
SingleForwardable
# def _ delegators(accessor , *methods) -> () (18301.0) -
メソッドの委譲先をまとめて設定します。
メソッドの委譲先をまとめて設定します。
@param accessor 委譲先のオブジェクト
@param methods 委譲するメソッドのリスト
委譲元のオブジェクトで methods のそれぞれのメソッドが呼び出された場合に、
委譲先のオブジェクトの同名のメソッドへ処理が委譲されるようになります。
def_delegators は def_singleton_delegators の別名になります。
また、以下の 2 つの例は同じ意味です。
def_delegators :@records, :size, :<<, :map
def_delegator :@rec... -
SingleForwardable
# def _ single _ delegators(accessor , *methods) -> () (18301.0) -
メソッドの委譲先をまとめて設定します。
メソッドの委譲先をまとめて設定します。
@param accessor 委譲先のオブジェクト
@param methods 委譲するメソッドのリスト
委譲元のオブジェクトで methods のそれぞれのメソッドが呼び出された場合に、
委譲先のオブジェクトの同名のメソッドへ処理が委譲されるようになります。
def_delegators は def_singleton_delegators の別名になります。
また、以下の 2 つの例は同じ意味です。
def_delegators :@records, :size, :<<, :map
def_delegator :@rec... -
VALUE rb
_ mod _ ancestors(VALUE mod) (18301.0) -
モジュール mod にインクルードされているモジュール、 さらに mod がクラスならばスーパークラスとそれに インクルードされているモジュールを再帰的に集めて メソッド探索優先順位順に並べて返します (早く探索されるほうが前)。
モジュール mod にインクルードされているモジュール、
さらに mod がクラスならばスーパークラスとそれに
インクルードされているモジュールを再帰的に集めて
メソッド探索優先順位順に並べて返します (早く探索されるほうが前)。 -
IRB
:: Inspector :: INSPECTORS (18001.0) -
定義された inspect_mode を管理する Hash オブジェクトです。
定義された inspect_mode を管理する Hash オブジェクトです。
デフォルトで扱える Inspector については lib:irb#inspect_mode を
参照してください。 -
Psych
:: Visitors (18001.0) -
Psych 内部で利用する各種 Visitor class を保持しているモジュール。
Psych 内部で利用する各種 Visitor class を保持しているモジュール。 -
Etc
:: SC _ NPROCESSORS _ CONF -> Integer (9301.0) -
Etc.#sysconf の引数に指定します。
Etc.#sysconf の引数に指定します。
詳細は sysconf(3) を参照してください。 -
Etc
:: SC _ NPROCESSORS _ ONLN -> Integer (9301.0) -
Etc.#sysconf の引数に指定します。
Etc.#sysconf の引数に指定します。
詳細は sysconf(3) を参照してください。 -
Psych
:: Visitors :: YAMLTree . new(options = {} , emitter = Psych :: TreeBuilder . new , ss = Psych :: ScalarScanner . new) -> Psych :: Visitors :: YAMLTree (9301.0) -
YAMLTree オブジェクトを生成します。
YAMLTree オブジェクトを生成します。
options には構築される YAML AST に設定されるオプション設定を指定します。
Psych.dump と同じオプションが指定できます。
emitter には AST の構築に使われる Psych::TreeBuilder オブジェクト
を渡します。
ss は Ruby の String が YAML document 上で quote が必要かどうか
を判定するための Psych::ScalarScanner オブジェクトを渡します。
emitter, ss は通常デフォルトのものから変える必要はないでしょう。
@param... -
Kernel
$ $ OUTPUT _ RECORD _ SEPARATOR -> String | nil (9004.0) -
$\ の別名
$\ の別名
require "English"
print "hoge\nhuga\n"
$OUTPUT_RECORD_SEPARATOR = "\n"
print "fuge"
print "ugo"
# end of sample.rb
ruby sample.rb
hoge
huga
fuge
ugo -
Psych
:: Visitors :: Visitor (9001.0) -
Psych 内部で利用する、Visitor パターンのための 抽象クラス。
Psych 内部で利用する、Visitor パターンのための 抽象クラス。 -
Psych
:: Visitors :: YAMLTree (9001.0) -
Ruby オブジェクトから YAML の AST を構築するためのクラスです。
Ruby オブジェクトから YAML の AST を構築するためのクラスです。
=== 例
builder = Psych::Visitors::YAMLTree.new
builder << { :foo => 'bar' }
builder << ["baz", "bazbaz"]
builder.tree # => #<Psych::Nodes::Stream ... > A stream containing two documents
puts tree.to_yaml
# =>
# ---
# :foo: bar
# ---
# - baz... -
Psych
:: Visitors :: YAMLTree # <<(object) (9001.0) -
変換対象の Ruby オブジェクトを追加します。
変換対象の Ruby オブジェクトを追加します。
@param object YAML AST へ変換する Ruby オブジェクト -
Psych
:: Visitors :: YAMLTree # finish -> Psych :: Nodes :: Stream|nil (9001.0) -
変換を終了し、構築した AST を返します。
変換を終了し、構築した AST を返します。
このメソッドは2回呼び出さないでください。
@see Psych::Visitors::YAMLTree#tree -
Psych
:: Visitors :: YAMLTree # finished -> bool (9001.0) -
Psych::Visitors::YAMLTree#finish をすでに呼び出しているならば 真を返します。
Psych::Visitors::YAMLTree#finish をすでに呼び出しているならば
真を返します。
まだならば偽を返します。 -
Psych
:: Visitors :: YAMLTree # finished? -> bool (9001.0) -
Psych::Visitors::YAMLTree#finish をすでに呼び出しているならば 真を返します。
Psych::Visitors::YAMLTree#finish をすでに呼び出しているならば
真を返します。
まだならば偽を返します。 -
Psych
:: Visitors :: YAMLTree # push(object) (9001.0) -
変換対象の Ruby オブジェクトを追加します。
変換対象の Ruby オブジェクトを追加します。
@param object YAML AST へ変換する Ruby オブジェクト -
Psych
:: Visitors :: YAMLTree # start(encoding = Nodes :: Stream :: UTF8) -> Psych :: Nodes :: Stream (9001.0) -
Ruby オブジェクトから YAML AST への変換のための準備をします。
Ruby オブジェクトから YAML AST への変換のための準備をします。
Psych::Visitors::YAMLTree#push が呼び出されたとき、
まだこのメソッドが呼び出されていなければ push メソッドがこの
メソッドを呼び出し、変換の準備をします。
encoding には以下のいずれかを指定できます。
* Psych::Nodes::Node::UTF8
* Psych::Nodes::Node::UTF16BE
* Psych::Nodes::Node::UTF16LE
@param encoding YAML AST に設定するエンコーディング -
Psych
:: Visitors :: YAMLTree # started -> bool (9001.0) -
Psych::Visitors::YAMLTree#start をすでに呼び出しているならば 真を返します。
Psych::Visitors::YAMLTree#start をすでに呼び出しているならば
真を返します。
まだならば偽を返します。 -
Psych
:: Visitors :: YAMLTree # started? -> bool (9001.0) -
Psych::Visitors::YAMLTree#start をすでに呼び出しているならば 真を返します。
Psych::Visitors::YAMLTree#start をすでに呼び出しているならば
真を返します。
まだならば偽を返します。 -
Psych
:: Visitors :: YAMLTree # tree -> Psych :: Nodes :: Stream|nil (9001.0) -
変換を終了し、構築した AST を返します。
変換を終了し、構築した AST を返します。
内部で finish を呼び出し、変換処理を終了します。
このメソッドを2回以上呼ぶと、2回目以降は nil を返します。
@see Psych::Visitors::YAMLTree#finish -
Array
# values _ at(*selectors) -> Array (301.0) -
引数で指定されたインデックスに対応する要素を配列で返します。インデッ クスに対応する値がなければ nil が要素になります。
引数で指定されたインデックスに対応する要素を配列で返します。インデッ
クスに対応する値がなければ nil が要素になります。
@param selectors インデックスを整数もしくは整数の Range で指定します。
//emlist[例][ruby]{
ary = %w( a b c d e )
p ary.values_at( 0, 2, 4 ) #=> ["a", "c", "e"]
p ary.values_at( 3, 4, 5, 6, 35 ) #=> ["d", "e", nil, nil, nil]
p ary.values_at( 0, -1,... -
Gem
:: Command # show _ lookup _ failure(gem _ name , version , errors = nil) -> () (301.0) -
Gem が見つからなかった場合、メッセージを表示するために使用するメソッドです。
Gem が見つからなかった場合、メッセージを表示するために使用するメソッドです。
@param gem_name Gem の名前を指定します。
@param version Gem のバージョンを指定します。
@param errors Gem が見つからなかった理由を表すオブジェクトを格納した配列を指定します。 -
Vector
# independent?(*vectors) -> bool (301.0) -
self とベクトルの列 vectors が線形独立であれば true を返します。
self とベクトルの列 vectors が線形独立であれば true を返します。
require 'matrix'
Vector.independent?(self, *vectors)
と同じです。
@param vectors 線形独立性を判定するベクトル列 -
Vector
. independent?(*vectors) -> bool (301.0) -
ベクトルの列 vectors が線形独立であれば true を返します。
ベクトルの列 vectors が線形独立であれば true を返します。
@param vectors 線形独立性を判定するベクトル列