890件ヒット
[1-100件を表示]
(0.105秒)
ライブラリ
- English (11)
- ビルトイン (512)
- continuation (11)
- csv (22)
- find (11)
- matrix (99)
- openssl (11)
- pathname (11)
- prime (22)
-
rexml
/ document (11) -
rinda
/ rinda (11) -
rubygems
/ requirement (11)
クラス
-
ARGF
. class (33) - Array (85)
- CSV (22)
- Data (4)
- Enumerator (23)
-
Enumerator
:: ArithmeticSequence (6) -
Enumerator
:: Lazy (96) - Exception (11)
- File (22)
- Float (11)
-
Gem
:: Requirement (11) - Hash (28)
- Matrix (99)
-
OpenSSL
:: BN (11) - Pathname (11)
- Prime (22)
-
Process
:: Status (11) -
REXML
:: Attribute (11) - Rational (11)
-
Rinda
:: DRbObjectTemplate (11) - String (11)
モジュール
- Enumerable (94)
- Find (11)
- GC (22)
- Kernel (11)
- Math (11)
オブジェクト
- ENV (33)
キーワード
-
$ CHILD _ STATUS (11) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - === (11)
- Continuation (11)
- Marshal フォーマット (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 3
. 0 . 0 (4) - Win32ネイティブ版Rubyの互換性問題 (11)
- asin (11)
-
backtrace
_ locations (11) - chunk (11)
-
chunk
_ while (11) - collect (11)
- define (4)
-
delete
_ if (22) - detect (11)
- divmod (11)
- each (33)
-
each
_ line (22) -
each
_ pair (11) - eigen (11)
- eigensystem (11)
- empty (11)
- eql? (11)
- filter (6)
- filter! (6)
- find (22)
-
find
_ all (11) -
find
_ index (22) -
generate
_ prime (11) - index (11)
- instance (22)
- join (11)
-
keep
_ if (11) -
latest
_ gc _ info (22) - lstat (22)
- lup (11)
-
lup
_ decomposition (11) - map (11)
- new (18)
- pack (19)
- pack テンプレート文字列 (11)
- partition (11)
- produce (5)
- rdoc (11)
- rect (11)
- rectangular (11)
- reject (22)
- reject! (22)
- rindex (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
satisfied
_ by? (11) - select (11)
- select! (11)
-
slice
_ after (20) -
slice
_ before (33) -
slice
_ when (10) - unpack (11)
- 制御構造 (11)
- 演算子式 (11)
検索結果
先頭5件
-
Rational
# ==(other) -> bool (24130.0) -
数値として等しいか判定します。
...なければ false を返します。
//emlist[例][ruby]{
Rational(2, 3) == Rational(2, 3) # => true
Rational(5) == 5 # => true
Rational(0) == 0.0 # => true
Rational('1/3') == 0.33 # => false
Rational('1/2') == '1/2' # => false
//}......でなければ false を返します。
//emlist[例][ruby]{
Rational(2, 3) == Rational(2, 3) # => true
Rational(5) == 5 # => true
Rational(0) == 0.0 # => true
Rational('1/3') == 0.33 # => false
Rational('1/2') == '1/2' # => false
//}... -
Enumerator
:: ArithmeticSequence # ==(other) -> bool (24100.0) -
Enumerable::ArithmeticSequence として等しいか判定します。
...Enumerable::ArithmeticSequence として等しいか判定します。
other が Enumerable::ArithmeticSequence で
begin, end, step, exclude_end? が等しい時に
true を返します。
@param other 自身と比較する Enumerable::ArithmeticSequence... -
Matrix
# ==(other) -> bool (24100.0) -
自分自身と other を比較し、同値であれば真(true)を返します。
自分自身と other を比較し、同値であれば真(true)を返します。
@param other 比較対象のオブジェクト -
REXML
:: Attribute # ==(other) -> bool (24100.0) -
属性の名前と値が other と一致する場合に真を返します。
属性の名前と値が other と一致する場合に真を返します。 -
Process
:: Status # ==(other) -> bool (21106.0) -
同じステータスの場合に真を返します。
...同じステータスの場合に真を返します。
other が数値の場合、self.to_i との比較が行われます。こ
れは後方互換性のためです。
@param other 自身と比較したいオブジェクトを指定します。... -
Rinda
:: DRbObjectTemplate # ===(ro) (18200.0) -
@todo
...@todo
This DRbObjectTemplate matches +ro+ if the remote object's drburi
and drbref are the same. +nil+ is used as a wildcard.... -
Exception
# backtrace _ locations -> [Thread :: Backtrace :: Location] (15406.0) -
バックトレース情報を返します。Exception#backtraceに似ていますが、 Thread::Backtrace::Location の配列を返す点が異なります。
...tion#backtraceに似ていますが、
Thread::Backtrace::Location の配列を返す点が異なります。
現状では Exception#set_backtrace によって戻り値が変化する事はあり
ません。
//emlist[例: test.rb][ruby]{
require "date"
def check_long_month(month)
return if Date......).day == 31
raise "#{month} is not long month"
end
def get_exception
return begin
yield
rescue => e
e
end
end
e = get_exception { check_long_month(2) }
p e.backtrace_locations
# => ["test.rb:4:in `check_long_month'", "test.rb:15:in `block in <main>'", "test.rb:9:in `get_exception'"......, "test.rb:15:in `<main>'"]
//}
@see Exception#backtrace... -
Gem
:: Requirement # satisfied _ by?(version) -> bool (15200.0) -
引数 version が自身に含まれる全ての必要条件を満たす場合に true を返します。 そうでなければ、false を返します。
...version が自身に含まれる全ての必要条件を満たす場合に true を返します。
そうでなければ、false を返します。
@param version Gem::Version のインスタンスを指定します。
//emlist[][ruby]{
req = Gem::Requirement.new("~> 3.2.1")
p req.satisfied_by?(......Gem::Version.new('3.2.9')) # => true
p req.satisfied_by?(Gem::Version.new('3.3.0')) # => false
//}... -
Kernel
$ $ CHILD _ STATUS -> Process :: Status | nil (12412.0) -
$? の別名
...$? の別名
require "English"
out = `wget https://www.ruby-lang.org/en/about/license.txt -O - 2>/dev/null`
if $CHILD_STATUS.to_i == 0
print "wget success\n"
out.split(/\n/).each { |line|
printf "%s\n", line
}
else
print "wget failed\n"
end... -
Enumerable
# find _ index -> Enumerator (12366.0) -
条件に一致する最初の要素の位置を返します。
...トを指定します。
指定された val と == で等しい最初の要素の位置を返します。
等しい要素がひとつもなかった場合は nil を返します。
//emlist[例][ruby]{
(1..10).find_index(11) #=> nil
(1..10).find_index(2) #=> 1
//}
ブロックが与えられ......なかった場合は nil を返します。
//emlist[例][ruby]{
(1..10).find_index {|i| i % 5 == 0 and i % 7 == 0 } #=> nil
(1..100).find_index {|i| i % 5 == 0 and i % 7 == 0 } #=> 34
//}
引数、ブロックのどちらも与えられなかった場合は、
Enumerator のインスタン...