811件ヒット
[1-100件を表示]
(0.100秒)
ライブラリ
- ビルトイン (453)
-
cgi
/ core (33) - csv (11)
- dbm (11)
- delegate (11)
- erb (11)
- gdbm (11)
- ipaddr (11)
- matrix (11)
-
minitest
/ spec (1) -
minitest
/ unit (2) - mkmf (55)
- pathname (24)
- rake (11)
-
rdoc
/ context (22) -
rdoc
/ text (11) -
rexml
/ document (11) - sdbm (11)
- set (15)
- tsort (30)
-
webrick
/ httpresponse (11) -
webrick
/ httpserver (22)
クラス
- Array (11)
-
CSV
:: Row (11) - DBM (11)
- Delegator (11)
- ERB (11)
- GDBM (11)
- Hash (11)
- IPAddr (11)
- Module (230)
- Object (89)
- Pathname (24)
- Proc (5)
-
RDoc
:: Context (22) -
RDoc
:: Options (22) -
REXML
:: AttlistDecl (11) -
Rake
:: FileList (11) - Range (17)
- Refinement (3)
- SDBM (11)
- Set (15)
- String (11)
- TracePoint (11)
- UnboundMethod (11)
- Vector (11)
-
WEBrick
:: HTTPResponse (11) -
WEBrick
:: HTTPServer (22)
モジュール
-
CGI
:: QueryExtension (33) - Enumerable (44)
- GC (11)
- Kernel (55)
-
MiniTest
:: Assertions (2) -
RDoc
:: Text (11) - TSort (30)
キーワード
- < (11)
- <= (11)
- <=> (11)
- > (11)
- >= (11)
-
add
_ include (11) - ancestors (11)
-
append
_ features (11) -
assert
_ includes (1) -
assert
_ send (1) - bind (11)
- chunked= (11)
-
const
_ defined? (11) -
const
_ get (11) -
const
_ source _ location (5) - constants (11)
-
def
_ module (11) -
defined
_ class (11) -
dir
_ config (11) - each (11)
-
each
_ child (22) -
each
_ entry (24) -
each
_ strongly _ connected _ component (10) -
each
_ strongly _ connected _ component _ from (10) -
enable
_ config (22) - extend (11)
-
garbage
_ collect (11) -
has
_ key? (11) -
import
_ methods (3) - include? (154)
-
include
_ line _ numbers (11) - included (11)
-
included
_ modules (11) - includes (11)
- key? (11)
- markup (11)
- member? (21)
-
method
_ defined? (11) - methods (11)
- mount (11)
-
must
_ include (1) -
prepend
_ features (11) -
private
_ instance _ methods (11) -
private
_ method _ defined? (11) -
private
_ methods (11) -
protected
_ method _ defined? (11) -
protected
_ methods (11) -
public
_ method _ defined? (11) -
public
_ methods (11) -
rdoc
_ include (11) -
respond
_ to? (11) -
respond
_ to _ missing? (22) -
ruby2
_ keywords (10) -
singleton
_ methods (11) -
tsort
_ each (10) -
virtual
_ host (11) -
with
_ config (22)
検索結果
先頭5件
-
Module
# include(*mod) -> self (24268.0) -
モジュール mod をインクルードします。
...。
@param mod Module のインスタンス( Enumerable など)を指定します。
@raise ArgumentError 継承関係が循環してしまうような include を行った場合に発生します。
//emlist[例][ruby]{
module M
end
module M2
include M
end
module M
include M2
end
//}
実行......結果:
-:3:in `append_features': cyclic include detected (ArgumentError)
from -:3:in `include'
from -:3
インクルードとは、指定されたモジュールの定義
(メソッド、定数) を引き継ぐことです。
インクルードは多重継承の代わりに......用いられており、 mix-in とも呼びます。
//emlist[例][ruby]{
class C
include FileTest
include Math
end
p C.ancestors
# => [C, Math, FileTest, Object, Kernel]
//}
モジュールの機能追加は、クラスの継承関係の間にそのモジュールが挿入
されること... -
Rake
:: FileList # include(*filenames) -> self (24214.0) -
ファイル名のパターンを追加リストに登録します。 配列が与えられた場合、配列の各要素が追加されます。
...ターンを追加リストに登録します。
配列が与えられた場合、配列の各要素が追加されます。
@param filenames 追加するファイル名のパターンを指定します。
例:
file_list.include("*.java", "*.cfg")
file_list.include %w( math.c lib.h *.o )... -
Module
# included _ modules -> [Module] (15207.0) -
self にインクルードされているモジュールの配列を返します。
...self にインクルードされているモジュールの配列を返します。
//emlist[例][ruby]{
module Mixin
end
module Outer
include Mixin
end
Mixin.included_modules #=> []
Outer.included_modules #=> [Mixin]
//}
@see Module#ancestors... -
RDoc
:: Context # add _ include(an _ include) -> () (12431.0) -
引数で指定した RDoc::Include オブジェクトを追加します。
...引数で指定した RDoc::Include オブジェクトを追加します。
@param an_include RDoc::Include オブジェクトを指定します。... -
RDoc
:: Context # includes -> [RDoc :: Include] (12418.0) -
追加された RDoc::Include の配列を返します。
...追加された RDoc::Include の配列を返します。... -
Module
# included(class _ or _ module) -> () (12241.0) -
self が Module#include されたときに対象のクラスまたはモジュー ルを引数にしてインタプリタがこのメソッドを呼び出します。
...elf が Module#include されたときに対象のクラスまたはモジュー
ルを引数にしてインタプリタがこのメソッドを呼び出します。
@param class_or_module Module#include を実行したオブジェクト
//emlist[例][ruby]{
module Foo
def self.included(mod)......p "#{mod} include #{self}"
end
end
class Bar
include Foo
end
# => "Bar include Foo"
//}
@see Module#append_features... -
Range
# include?(obj) -> bool (12226.0) -
obj が範囲内に含まれている時に true を返します。 そうでない場合は、false を返します。
...obj が範囲内に含まれている時に true を返します。
そうでない場合は、false を返します。
<=> メソッドによる演算により範囲内かどうかを判定するには Range#cover? を使用してください。
始端・終端・引数が数値であれば、......ェクトを指定します。
//emlist[例][ruby]{
p ("a" .. "c").include?("b") # => true
p ("a" .. "c").include?("B") # => false
p ("a" .. "c").include?("ba") # => false
p ("a" .. "c").cover?("ba") # => true
p (1 .. 3).include?(1.5) # => true
//}
@see d:spec/control#case
@see Range#cover?,... -
Module
# include?(mod) -> bool (12220.0) -
self かその親クラス / 親モジュールがモジュール mod を インクルードしていれば true を返します。
...クラス / 親モジュールがモジュール mod を
インクルードしていれば true を返します。
@param mod Module を指定します。
//emlist[例][ruby]{
module M
end
class C1
include M
end
class C2 < C1
end
p C1.include?(M) # => true
p C2.include?(M) # => true
//}... -
String
# include?(substr) -> bool (12220.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 (12218.0) -
コマンドライン引数の --include-line-numbers を指定していた場合に true を返します。そうでない場合は false を返します。
...コマンドライン引数の --include-line-numbers を指定していた場合に true
を返します。そうでない場合は false を返します。...