るりまサーチ

最速Rubyリファレンスマニュアル検索!
1480件ヒット [101-200件を表示] (0.081秒)

別のキーワード

  1. _builtin include?
  2. socket mcast_include
  3. dbm include?
  4. gdbm include?
  5. sdbm include?

ライブラリ

クラス

モジュール

検索結果

<< < 1 2 3 4 ... > >>

String#include?(substr) -> bool (6220.0)

文字列中に部分文字列 substr が含まれていれば真を返します。

...文字列中に部分文字列 substr が含まれていれば真を返します。

@param substr 検索する文字列

//emlist[例][ruby]{
"hello".include? "lo" #=> true
"hello".include? "ol" #=> false
"hello".include? ?h #=> true
//}...

RDoc::Options#include_line_numbers -> bool (6218.0)

コマンドライン引数の --include-line-numbers を指定していた場合に true を返します。そうでない場合は false を返します。

...コマンドライン引数の --include-line-numbers を指定していた場合に true
を返します。そうでない場合は false を返します。...

RDoc::Options#rdoc_include -> [String] (6218.0)

コマンドライン引数の --include オプションで指定したディレクトリを文字列 の配列で返します。

...コマンドライン引数の --include オプションで指定したディレクトリを文字列
の配列で返します。

指定しなかった場合は ['.'] を返します。...

Array#include?(val) -> bool (6214.0)

配列が val と == で等しい要素を持つ時に真を返します。

...配列が val と == で等しい要素を持つ時に真を返します。

@param val オブジェクトを指定します。

//emlist[例][ruby]{
a = [ "a", "b", "c" ]
a.include?("b") #=> true
a.include?("z") #=> false
//}...

Enumerable#include?(val) -> bool (6214.0)

val と == の関係にある要素を含むとき真を返します。

...val と == の関係にある要素を含むとき真を返します。

@param val 任意のオブジェクト

//emlist[例][ruby]{
[2, 4, 6].include? 2 #=> true
[2, 4, 6].include? 1 #=> false
[2, 4, 6].member? 2 #=> true
[2, 4, 6].member? 1 #=> false
//}...

絞り込み条件を変える

Set#include?(o) -> bool (6214.0)

オブジェクト o がその集合に属する場合に true を返します。

...オブジェクト o がその集合に属する場合に true を返します。

@param o オブジェクトを指定します。

//emlist[][ruby]{
require 'set'
set = Set['hello', 'world']
p set.include?('world') # => true
p set.include?('bye') # => false
//}...

Object#must_include(object) -> true (6208.0)

自身に与えられたオブジェクトが含まれている場合、検査にパスしたことになります。

...ェクトを指定します。

@raise MiniTest::Assertion 自身が include? メソッドを持たない場合に発生します。
自身に与えられたオブジェクトが含まれていない場合に発生します。

@see MiniTest::Assertions#assert_includes...

MiniTest::Assertions#assert_includes(collection, object, message = nil) -> true (6207.0)

与えられたコレクションにオブジェクトが含まれている場合、検査にパスしたことになります。

...oc である場合は Proc#call した
結果を使用します。

@raise MiniTest::Assertion 第一引数のオブジェクトが include? メソッドを持たない場合に発生します。
与えられたコレクションにオブジェクトが含...

Module#included_modules -> [Module] (6207.0)

self にインクルードされているモジュールの配列を返します。

...self にインクルードされているモジュールの配列を返します。

//emlist[例][ruby]{
module Mixin
end

module Outer
include
Mixin
end

Mixin.included_modules #=> []
Outer.included_modules #=> [Mixin]
//}

@see Module#ancestors...

REXML::AttlistDecl#include?(key) -> bool (6202.0)

key が属性名であるならば真を返します。

key が属性名であるならば真を返します。

@param key 属性名であるかどうか判定する文字列

絞り込み条件を変える

Module#<=>(other) -> Integer | nil (6107.0)

self と other の継承関係を比較します。

...のクラスやモジュール

//emlist[例][ruby]{
module Foo
end
class Bar
include
Foo
end
class Baz < Bar
end
class Qux
end
p Bar <=> Foo # => -1
p Baz <=> Bar # => -1
p Baz <=> Foo # => -1
p Baz <=> Qux # => nil
p Qux <=> Baz # => nil

p Baz <=> Object.new # => nil
//}...

Module#>=(other) -> bool | nil (6107.0)

比較演算子。self が other の先祖か同一クラスである場合、 true を返します。 self が other の子孫である場合、false を返します。

...ule#<

//emlist[例][ruby]{
module Foo; end
module Bar
include
Foo
end
module Baz
prepend Foo
end

Bar.ancestors # => [Bar, Foo]
Foo >= Bar # => true
Bar >= Foo # => false

Baz.ancestors # => [Foo, Baz]
Foo >= Baz # => true
Baz >= Foo # => false

Foo >= Foo # => true
Foo >= Object # => nil
//}...
<< < 1 2 3 4 ... > >>