ライブラリ
- ビルトイン (380)
- bigdecimal (22)
-
cgi
/ html (22) - mkmf (22)
-
rexml
/ document (33) - thread (2)
-
webrick
/ httpversion (11)
クラス
- Array (11)
- BasicObject (22)
- BigDecimal (22)
- Fixnum (6)
- Float (22)
- Hash (18)
- Integer (22)
- Module (104)
- Object (44)
-
REXML
:: CData (11) -
REXML
:: Text (11) - Range (28)
-
RubyVM
:: InstructionSequence (33) - Thread (8)
-
Thread
:: SizedQueue (20) -
WEBrick
:: HTTPVersion (11)
モジュール
-
CGI
:: HtmlExtension (22) - Comparable (22)
- Kernel (44)
キーワード
- ! (11)
- <= (67)
- <=> (11)
- == (11)
- Marshal フォーマット (11)
- Ruby プログラムの実行 (11)
- XMLDecl (11)
- bigdecimal (11)
- bsearch (22)
-
class
_ variables (11) - compile (11)
-
compile
_ file (11) -
const
_ source _ location (5) - cover? (17)
- enq (10)
- html (22)
-
instance
_ methods (11) -
instance
_ of? (11) -
is
_ a? (11) -
kind
_ of? (11) -
method
_ defined? (11) - methods (11)
- new (33)
-
private
_ method _ defined? (11) -
protected
_ method _ defined? (11) -
public
_ method _ defined? (11) - push (10)
-
report
_ on _ exception (8) -
ruby 1
. 8 . 2 feature (11) - test (22)
-
try
_ cpp (22) -
undef
_ method (11) - メソッド呼び出し(super・ブロック付き・yield) (11)
- 制御構造 (11)
- 変数と定数 (11)
- 正規表現 (11)
検索結果
先頭5件
-
Module
# <(other) -> bool | nil (21352.0) -
比較演算子。self が other の子孫である場合、 true を返します。 self が other の先祖か同一のクラス/モジュールである場合、false を返します。
...比較演算子。self が other の子孫である場合、 true を返します。
self が other の先祖か同一のクラス/モジュールである場合、false を返します。
継承関係にないクラス同士の比較では
nil を返します。
@param other 比較対象のモ......//emlist[例][ruby]{
module Foo
end
class Bar
include Foo
end
class Baz < Bar
end
class Qux
end
p Bar < Foo # => true
p Baz < Bar # => true
p Baz < Foo # => true
p Baz < Qux # => nil
p Baz > Qux # => nil
p Foo < Object.new # => in `<': compared with non class/module (TypeErr... -
Comparable
# <(other) -> bool (21234.0) -
比較演算子 <=> をもとにオブジェクト同士を比較します。 <=> が負の整数を返した場合に、true を返します。 それ以外の整数を返した場合に、false を返します。
... <=> をもとにオブジェクト同士を比較します。
<=> が負の整数を返した場合に、true を返します。
それ以外の整数を返した場合に、false を返します。
@param other 自身と比較したいオブジェクトを指定します。
@raise ArgumentError <......=> が nil を返したときに発生します。
//emlist[例][ruby]{
1 < 1 # => false
1 < 2 # => true
//}... -
BigDecimal
# <(other) -> bool (21216.0) -
self が other より小さい場合に true を、そうでない場合に false を返しま す。
...self が other より小さい場合に true を、そうでない場合に false を返しま
す。... -
Float
# <(other) -> bool (21212.0) -
比較演算子。数値として小さいか判定します。
...数値として小さいか判定します。
@param other 比較対象の数値
@return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。
//emlist[例][ruby]{
3.14 < 3.1415 # => true
3.14 <= 3.1415 # => true
//}... -
Hash
# <(other) -> bool (18230.0) -
self が other のサブセットである場合に真を返します。
...self が other のサブセットである場合に真を返します。
@param other 自身と比較したい Hash オブジェクトを指定します。
//emlist[例][ruby]{
h1 = {a:1, b:2}
h2 = {a:1, b:2, c:3}
h1 < h2 # => true
h2 < h1 # => false
h1 < h1 # => false
//}
@see Hash#<=,... -
Integer
# <(other) -> bool (18224.0) -
比較演算子。数値として小さいか判定します。
...比較演算子。数値として小さいか判定します。
@param other 比較対象の数値
@return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。
//emlist[][ruby]{
1 < 1 # => false
1 < 2 # => true
//}... -
Fixnum
# <(other) -> bool (18206.0) -
比較演算子。数値として小さいか判定します。
...比較演算子。数値として小さいか判定します。
@param other 比較対象の数値
@return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。... -
RubyVM
:: InstructionSequence . compile _ file(file , options = nil) -> RubyVM :: InstructionSequence (12312.0) -
引数 file で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。
...file で指定した Ruby のソースコードを元にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。
RubyVM::InstructionSequence.compile とは異なり、file、path などの
メタデータは自動的に取得します。
@param file......ue、false、Hash オブ
ジェクトのいずれかで指定します。詳細は
RubyVM::InstructionSequence.compile_option= を参照
してください。
# /tmp/hello.rb
puts "Hello, world!"
# irb
RubyVM::InstructionSequence.compile_file("/......tmp/hello.rb")
# => <RubyVM::InstructionSequence:<main>@/tmp/hello.rb>
@see RubyVM::InstructionSequence.compile... -
Module
# <=(other) -> bool | nil (9328.0) -
比較演算子。self が other の子孫であるか、self と other が 同一クラスである場合、 true を返します。 self が other の先祖である場合、false を返します。
...比較演算子。self が other の子孫であるか、self と other が
同一クラスである場合、 true を返します。
self が other の先祖である場合、false を返します。
継承関係にないクラス同士の比較では
nil を返します。
@param other 比較......Module#<
//emlist[例][ruby]{
module Foo; end
module Bar
include Foo
end
module Baz
prepend Foo
end
Bar.ancestors # => [Bar, Foo]
Foo <= Bar # => false
Bar <= Foo # => true
Baz.ancestors # => [Foo, Baz]
Foo <= Baz # => false
Baz <= Foo # => true
Foo <= Foo # => true
Foo <= Object # => nil
//... -
Comparable
# <=(other) -> bool (9222.0) -
比較演算子 <=> をもとにオブジェクト同士を比較します。 <=> が負の整数か 0 を返した場合に、true を返します。 それ以外の整数を返した場合に、false を返します。
...比較演算子 <=> をもとにオブジェクト同士を比較します。
<=> が負の整数か 0 を返した場合に、true を返します。
それ以外の整数を返した場合に、false を返します。
@param other 自身と比較したいオブジェクトを指定します。......@raise ArgumentError <=> が nil を返したときに発生します。
//emlist[例][ruby]{
1 <= 0 # => false
1 <= 1 # => true
1 <= 2 # => true
//}...