57件ヒット
[1-57件を表示]
(0.129秒)
別のキーワード
ライブラリ
- ビルトイン (9)
- matrix (12)
- rake (24)
-
rexml
/ document (12)
クラス
- Dir (9)
- Matrix (12)
-
REXML
:: Entity (12) -
Rake
:: InvocationChain (24)
検索結果
先頭5件
-
Matrix
. empty(row _ size=0 , column _ size=0) -> Matrix (24226.0) -
要素を持たない行列を返します。
...//emlist[例][ruby]{
require 'matrix'
m = Matrix.empty(2, 0)
m == Matrix[ [], [] ]
# => true
n = Matrix.empty(0, 3)
n == Matrix.columns([ [], [], [] ])
# => true
m * n
# => Matrix[[0, 0, 0], [0, 0, 0]]
//}
@param row_size 行列の行数
@param column_size 行列の列数
@raise ArgumentError row... -
Dir
. empty?(path _ name) -> bool (12232.0) -
path_name で与えられたディレクトリが空の場合に真を返します。 ディレクトリでない場合や空でない場合に偽を返します。
...path_name で与えられたディレクトリが空の場合に真を返します。
ディレクトリでない場合や空でない場合に偽を返します。
//emlist[例][ruby]{
Dir.empty?('.') #=> false
Dir.empty?(IO::NULL) #=> false
require 'tmpdir'
Dir.mktmpdir { |dir| Dir.empty?(d......ir) } #=> true
//}
@param path_name 確認したいディレクトリ名。... -
REXML
:: Entity . matches?(string) -> bool (6119.0) -
string が実体宣言の文法に従う文字列であれば真を返します。
...string が実体宣言の文法に従う文字列であれば真を返します。
@param string 判定対象の文字列
//emlist[][ruby]{
require 'rexml/document'
p REXML::Entity.matches?('<!ENTITY s "seal">') # => true
p REXML::Entity.matches?('<!ENTITY % s "seal">') # => true
p REXML::Entity.......matches?('<!ELEMENT br EMPTY >') # => false
//}... -
Rake
:: InvocationChain . new(task _ name , tail) (3219.0) -
与えられたタスク名と一つ前の Rake::InvocationChain を用いて自身を初期化します。
...:InvocationChain を用いて自身を初期化します。
@param task_name タスク名を指定します。
@param tail 一つ前の Rake::InvocationChain を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
tail = R......ake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
tail.to_s # => "TOP => task_a"
b = Rake::InvocationChain.new("task_b", tail)
b.to_s # => "TOP => task_a => task_b"
end
//}... -
Rake
:: InvocationChain . append(task _ name , chain) -> Rake :: InvocationChain (3119.0) -
与えられたタスク名を第二引数の Rake::InvocationChain に追加します。
...Rake::InvocationChain に追加します。
@param task_name タスク名を指定します。
@param chain 既に存在する Rake::InvocationChain のインスタンスを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app d......o
chain = Rake::InvocationChain::EMPTY
b = Rake::InvocationChain.append("task_a", chain)
b.to_s # => "TOP => task_a"
end
//}...