99件ヒット
[1-99件を表示]
(0.035秒)
種類
- インスタンスメソッド (55)
- モジュール関数 (22)
- 特異メソッド (22)
ライブラリ
- ビルトイン (33)
- pathname (22)
- psych (33)
-
rubygems
/ indexer (11)
クラス
-
File
:: Stat (11) -
Gem
:: Indexer (11) - Pathname (22)
-
Psych
:: Nodes :: Document (33)
モジュール
- Kernel (22)
キーワード
- Complex (22)
- children (11)
- directory? (11)
-
relative
_ path _ from (11) -
tag
_ directives (11) -
tag
_ directives= (11)
検索結果
先頭5件
-
Psych
:: Nodes :: Document . new(version=[] , tag _ directives=[] , implicit=false) -> Psych :: Nodes :: Document (18207.0) -
Document オブジェクトを生成します。
...。
version にはドキュメントのバージョンを指定します。
[major, minor] という配列で指定します。
tag_directives には tag directive の配列を指定します。
それぞれの tag は [prefix, suffix] という文字列の配列で
表現します。
implicit......AML ドキュメントのバージョン
@param tag_directives tag directive の配列
@param implicit ドキュメントが implicit に始まっているかどうか
=== 例
以下の例では、YAML 1.1 のドキュメントで、
tag directive を1つ持ち、 implicit にドキュメントが......開始
している Document オブジェクトを生成しています。
Psych::Nodes::Document.new(
[1,1],
tenderlovemaking.com,2009:",
true)
@see Psych::Handler#start_document... -
Gem
:: Indexer . new(directory) -> Gem :: Indexer (18201.0) -
与えられたディレクトリに Gem リポジトリのインデックスを作成するために 自身を初期化します。
与えられたディレクトリに Gem リポジトリのインデックスを作成するために
自身を初期化します。 -
File
:: Stat # directory? -> bool (6106.0) -
ディレクトリの時に真を返します。
...ディレクトリの時に真を返します。
//emlist[][ruby]{
p File::Stat.new($0).directory? #=> false
//}
@see FileTest.#directory?... -
Psych
:: Nodes :: Document # tag _ directives -> [[String , String]] (6106.0) -
tag directive の配列を返します。
...tag directive の配列を返します。
@see Psych::Nodes::Document#tag_directives=,
Psych::Nodes::Document.new... -
Psych
:: Nodes :: Document # tag _ directives=(tags) (6106.0) -
tag directive の配列を設定します。
...tag directive の配列を設定します。
@param tags 設定する tag directive の配列
@see Psych::Nodes::Document#tag_directives,
Psych::Nodes::Document.new... -
Pathname
# relative _ path _ from(base _ directory) -> Pathname (112.0) -
base_directory から self への相対パスを求め、その内容の新しい Pathname オブジェクトを生成して返します。
...ase_directory から self への相対パスを求め、その内容の新しい Pathname
オブジェクトを生成して返します。
パス名の解決は文字列操作によって行われ、ファイルシステムをアクセス
しません。
self が相対パスなら base_directory......が絶対パスなら
base_directory も絶対パスでなければなりません。
@param base_directory ベースディレクトリを表す Pathname オブジェクトを指定します。
@raise ArgumentError Windows上でドライブが違うなど、base_directory から self への相対......パスが求められないときに例外が発生します。
//emlist[例][ruby]{
require 'pathname'
path = Pathname.new("/tmp/foo")
base = Pathname.new("/tmp")
path.relative_path_from(base) # => #<Pathname:foo>
//}... -
Pathname
# children(with _ directory = true) -> [Pathname] (106.0) -
self 配下にあるパス名(Pathnameオブジェクト)の配列を返します。
...param with_directory 偽を指定するとファイル名のみ返します。デフォルトは真です。
@raise Errno::EXXX self が存在しないパスであったりディレクトリでなければ例外が発生します。
//emlist[例][ruby]{
require 'pathname'
Pathname.new("/tmp").chil... -
Kernel
. # Complex(r , i = 0) -> Complex (18.0) -
実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
...ェクトを返しま
す。
//emlist[例][ruby]{
Complex('1+1i', '2+3i') # => (-2+3i)
Complex('1+1i') + Complex('2+3i') * Complex('i') # => (-2+3i)
//}
@see Complex.rect、Complex.rectangular
[注意] Complex.new、Complex.new! は 1.9 系では廃止されました。... -
Kernel
. # Complex(r , i = 0 , exception: true) -> Complex | nil (18.0) -
実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
...ェクトを返しま
す。
//emlist[例][ruby]{
Complex('1+1i', '2+3i') # => (-2+3i)
Complex('1+1i') + Complex('2+3i') * Complex('i') # => (-2+3i)
//}
@see Complex.rect、Complex.rectangular
[注意] Complex.new、Complex.new! は 1.9 系では廃止されました。... -
Kernel
. # Complex(s) -> Complex (18.0) -
実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
...ェクトを返しま
す。
//emlist[例][ruby]{
Complex('1+1i', '2+3i') # => (-2+3i)
Complex('1+1i') + Complex('2+3i') * Complex('i') # => (-2+3i)
//}
@see Complex.rect、Complex.rectangular
[注意] Complex.new、Complex.new! は 1.9 系では廃止されました。... -
Kernel
. # Complex(s , exception: true) -> Complex | nil (18.0) -
実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
...ェクトを返しま
す。
//emlist[例][ruby]{
Complex('1+1i', '2+3i') # => (-2+3i)
Complex('1+1i') + Complex('2+3i') * Complex('i') # => (-2+3i)
//}
@see Complex.rect、Complex.rectangular
[注意] Complex.new、Complex.new! は 1.9 系では廃止されました。...