57件ヒット
[1-57件を表示]
(0.038秒)
別のキーワード
ライブラリ
- ビルトイン (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 (18120.0) -
要素を持たない行列を返します。
...row_size 、 column_size のいずれか一方は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... -
Dir
. empty?(path _ name) -> bool (6126.0) -
path_name で与えられたディレクトリが空の場合に真を返します。 ディレクトリでない場合や空でない場合に偽を返します。
...す。
ディレクトリでない場合や空でない場合に偽を返します。
//emlist[例][ruby]{
Dir.empty?('.') #=> false
Dir.empty?(IO::NULL) #=> false
require 'tmpdir'
Dir.mktmpdir { |dir| Dir.empty?(dir) } #=> true
//}
@param path_name 確認したいディレクトリ名。... -
REXML
:: Entity . matches?(string) -> bool (13.0) -
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 . append(task _ name , chain) -> Rake :: InvocationChain (13.0) -
与えられたタスク名を第二引数の Rake::InvocationChain に追加します。
...る Rake::InvocationChain のインスタンスを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
chain = Rake::InvocationChain::EMPTY
b = Rake::InvocationChain.append("task_a", chain)
b.to_s # => "TOP => task_a"
en... -
Rake
:: InvocationChain . new(task _ name , tail) (13.0) -
与えられたタスク名と一つ前の Rake::InvocationChain を用いて自身を初期化します。
...つ前の Rake::InvocationChain を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
tail = Rake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
tail.to_s # => "TOP => task_a"
b = Rake::InvocationChain.ne...