ライブラリ
- ビルトイン (253)
- csv (28)
- matrix (38)
-
minitest
/ spec (1) -
minitest
/ unit (1) - monitor (12)
-
net
/ http (24) - nkf (12)
- pathname (18)
- pp (12)
- rake (60)
- readline (36)
-
rexml
/ document (12) -
rexml
/ parsers / pullparser (24) - thread (14)
- thwait (6)
- win32ole (12)
クラス
- Array (4)
-
CSV
:: Row (12) -
CSV
:: Table (12) - Dir (9)
-
Encoding
:: Converter (60) - File (18)
- IO (36)
- Matrix (38)
-
Net
:: HTTP (24) - Object (13)
- Pathname (18)
-
REXML
:: Entity (12) -
REXML
:: Parsers :: PullParser (24) -
Rake
:: InvocationChain (48) -
Rake
:: InvocationChain :: EmptyInvocationChain (12) - Symbol (12)
-
Thread
:: Queue (36) -
Thread
:: SizedQueue (36) - ThreadsWait (6)
-
WIN32OLE
_ VARIANT (12)
モジュール
- FileTest (30)
- GC (6)
- Kernel (12)
-
MiniTest
:: Assertions (1)
オブジェクト
-
Readline
:: HISTORY (36)
キーワード
- ConditionVariable (12)
- Empty (12)
- MonitorMixin (12)
-
NEWS for Ruby 3
. 0 . 0 (5) - NKF (12)
- Ruby用語集 (12)
- antisymmetric? (7)
- append (36)
-
assert
_ empty (1) -
cgi
/ session (12) -
close
_ on _ empty _ response (12) -
close
_ on _ empty _ response= (12) - deq (24)
- empty? (108)
-
executable
_ real? (12) -
has
_ next? (12) - length (12)
- matches? (12)
- member? (12)
-
must
_ be _ empty (1) - new (12)
-
next
_ wait (6) - pop (24)
- pp (12)
-
pretty
_ print _ cycle (12) -
primitive
_ convert (48) -
primitive
_ errinfo (12) - read (36)
-
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) - shift (24)
- size (12)
-
skew
_ symmetric? (7) -
to
_ csv (4) -
verify
_ compaction _ references (6) - warn (12)
- zero? (27)
検索結果
先頭5件
-
Matrix
. empty(row _ size=0 , column _ size=0) -> Matrix (18131.0) -
要素を持たない行列を返します。
...][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_size, column_... -
Pathname
# empty? -> bool (6175.0) -
ディレクトリに対しては Dir.empty?(self.to_s) と同じ、他に対しては FileTest.empty?(self.to_s) と同じです。
...ては Dir.empty?(self.to_s) と同じ、他に対しては FileTest.empty?(self.to_s) と同じです。
//emlist[例 ディレクトリの場合][ruby]{
require "pathname"
require 'tmpdir'
Pathname("/usr/local").empty? # => false
Dir.mktmpdir { |dir| Pathname(dir).empty? } # => tru......e
//}
//emlist[例 ファイルの場合][ruby]{
require "pathname"
require 'tempfile'
Pathname("testfile").empty? # => false
Tempfile.create("tmp") { |tmp| Pathname(tmp).empty? } # => true
//}
@see Dir.empty?, FileTest.#empty?, Pathname#zero?... -
CSV
:: Table # empty? -> bool (6131.0) -
ヘッダーを除いて、データがないときに true を返します。
...ーを除いて、データがないときに true を返します。
Array#empty? に委譲しています。
//emlist[][ruby]{
require 'csv'
csv = CSV.new("a,b\n", headers: true)
table = csv.read
p table.empty? # => true
table << [1, 2]
p table.empty? # => false
//}
@see Array#empty?... -
WIN32OLE
_ VARIANT :: Empty -> WIN32OLE _ VARIANT (6129.0) -
EMPTY型のWIN32OLE_VARIANTオブジェクトです。
...EMPTY型のWIN32OLE_VARIANTオブジェクトです。
このオブジェクトは、VOID型の戻り値や、値が空なことを明示しなければなら
ない特殊な引数に利用します。
@see WIN32OLE::VARIANT::VT_EMPTY... -
Dir
. empty?(path _ name) -> bool (6125.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 確認したいディレクトリ名。... -
MiniTest
:: Assertions # assert _ empty(object , message = nil) -> true (6125.0) -
与えられたオブジェクトが空である場合、検査にパスしたことになります。
...
@param object 任意のオブジェクトを指定します。
@param message 検査に失敗した場合に表示するメッセージを指定します。
文字列か Proc を指定します。Proc である場合は Proc#call した
結果を使用します。
@......raise MiniTest::Assertion 与えられたオブジェクトが empty? メソッドを持たない場合に発生します。
また、与えられたオブジェクトが空でない場合にも発生します。... -
Object
# must _ be _ empty -> true (6125.0) -
自身が空である場合、検査にパスしたことになります。
...が空である場合、検査にパスしたことになります。
@raise MiniTest::Assertion 自身が empty? メソッドを持たない場合に発生します。
また、自身が空でない場合にも発生します。
@see MiniTest::Assertions#assert_empty... -
Symbol
# empty? -> bool (6125.0) -
自身が :"" (length が 0 のシンボル)かどうかを返します。
...自身が :"" (length が 0 のシンボル)かどうかを返します。
:"".empty? #=> true
:foo.empty? #=> false
@see String#empty?... -
FileTest
. # empty?(file) -> bool (6119.0) -
ファイルが存在して、そのサイズが 0 である時に真を返します。 そうでない場合、あるいはシステムコールに失敗した場合には false を返します。
...ない場合、あるいはシステムコールに失敗した場合には false を返します。
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@raise IOError 指定された IO オブジェクト file が既に close されていた場合に発生......します。
//emlist[例:][ruby]{
IO.write("zero.txt", "")
FileTest.zero?("zero.txt") # => true
IO.write("nonzero.txt", "1")
FileTest.zero?("nonzero.txt") # => false
//}
@see FileTest.#size, FileTest.#size?... -
Net
:: HTTP # close _ on _ empty _ response=(bool) (6119.0) -
レスポンスがボディを持っていない場合にコネクションを 閉じるかどうかを設定します。
...ンスがボディを持っていない場合にコネクションを
閉じるかどうかを設定します。
@param bool レスポンスがボディを持っていない場合にコネクションを
閉じるかどうか指定します。
@see Net::HTTP#close_on_empty_response... -
Readline
:: HISTORY . empty? -> bool (6119.0) -
ヒストリに格納された内容の数が 0 の場合は true を、 そうでない場合は false を返します。
...リに格納された内容の数が 0 の場合は true を、
そうでない場合は false を返します。
例:
require "readline"
p Readline::HISTORY.empty? #=> true
Readline::HISTORY.push("foo", "bar", "baz")
p Readline::HISTORY.empty? #=> false
@see Readline::HISTORY.length...