1520件ヒット
[1-100件を表示]
(0.076秒)
ライブラリ
- ビルトイン (638)
-
cgi
/ core (36) - csv (24)
- dbm (48)
- delegate (12)
- erb (12)
- gdbm (48)
- ipaddr (24)
-
irb
/ ext / math-mode (4) - matrix (24)
-
minitest
/ spec (1) -
minitest
/ unit (2) - mkmf (84)
- pathname (51)
- rake (24)
-
rake
/ packagetask (12) -
rdoc
/ context (48) -
rdoc
/ text (12) -
rexml
/ document (12) -
rexml
/ parsers / sax2parser (60) -
rexml
/ streamlistener (12) -
rubygems
/ version (12) - sdbm (48)
- set (23)
- socket (12)
- tsort (93)
-
webrick
/ httpresponse (60) -
webrick
/ httpserver (24) - win32ole (36)
クラス
- Array (12)
-
CSV
:: Row (24) - DBM (48)
- Delegator (12)
- ERB (12)
- GDBM (48)
-
Gem
:: Version (12) - Hash (48)
- IPAddr (24)
-
IRB
:: Context (4) - Method (24)
- Module (264)
- Object (121)
- Pathname (51)
- Proc (6)
-
RDoc
:: Context (48) -
RDoc
:: Options (24) -
REXML
:: AttlistDecl (12) -
REXML
:: Parsers :: SAX2Parser (60) -
Rake
:: FileList (24) -
Rake
:: PackageTask (12) - Range (55)
- Refinement (4)
- SDBM (48)
- Set (32)
- Socket (12)
- String (12)
- TracePoint (12)
- UnboundMethod (12)
- Vector (24)
-
WEBrick
:: HTTPResponse (60) -
WEBrick
:: HTTPServer (24) - WIN32OLE (36)
モジュール
-
CGI
:: QueryExtension (36) - Enumerable (48)
- GC (12)
- Kernel (84)
-
MiniTest
:: Assertions (2) -
RDoc
:: Text (12) -
REXML
:: StreamListener (12) - TSort (93)
キーワード
- < (12)
- <= (12)
- <=> (12)
- === (32)
- > (12)
- >= (12)
-
_ getproperty (12) -
_ invoke (12) -
_ setproperty (12) -
add
_ include (12) -
add
_ to (12) - ancestors (12)
-
append
_ features (12) -
assert
_ includes (1) -
assert
_ send (1) - bind (12)
- body= (12)
- chunked= (12)
-
connect
_ nonblock (12) -
const
_ defined? (12) -
const
_ get (12) -
const
_ source _ location (12) - constants (12)
-
content
_ length (12) -
content
_ length= (12) - cover? (19)
-
def
_ module (12) -
defined
_ class (12) -
dir
_ config (12) - each (24)
-
each
_ child (24) -
each
_ entry (39) -
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (23) -
enable
_ config (24) - entitydecl (12)
- entries (12)
- eql? (12)
- extend (12)
-
garbage
_ collect (12) -
has
_ key? (60) - header? (12)
-
import
_ methods (4) - include? (168)
-
include
_ line _ numbers (12) - included (12)
-
included
_ modules (12) - includes (12)
-
initialize
_ methods _ etc (12) - inspect (12)
-
is
_ a? (12) - key? (60)
-
kind
_ of? (12) - listen (60)
- markup (12)
-
math
_ mode= (4) - member? (84)
-
method
_ defined? (12) - methods (12)
- mount (12)
-
must
_ include (1) -
package
_ files (12) -
prepend
_ features (12) -
private
_ instance _ methods (12) -
private
_ method _ defined? (12) -
private
_ methods (12) -
protected
_ method _ defined? (12) -
protected
_ methods (12) -
public
_ method _ defined? (12) -
public
_ methods (12) -
rdoc
_ include (12) - resolve (12)
-
respond
_ to? (12) -
respond
_ to _ missing? (24) -
ruby2
_ keywords (18) -
singleton
_ methods (12) -
strongly
_ connected _ components (12) -
to
_ s (24) -
try
_ cpp (24) - tsort (12)
-
tsort
_ each (23) -
virtual
_ host (12) -
with
_ config (24)
検索結果
先頭5件
-
Module
# include(*mod) -> self (18168.0) -
モジュール mod をインクルードします。
...てしまうような 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]
//}
モジュールの機能追加は、クラスの継承関係の......ッド探索の順序です)。
同じモジュールを二回以上 include すると二回目以降は無視されます。
//emlist[例][ruby]{
module M
end
class C1
include M
end
class C2 < C1
include M # この include は無視される
end
p C2.ancestors # => [C2, C1, M, Object, Ker... -
Rake
:: FileList # include(*filenames) -> self (18114.0) -
ファイル名のパターンを追加リストに登録します。 配列が与えられた場合、配列の各要素が追加されます。
...ターンを追加リストに登録します。
配列が与えられた場合、配列の各要素が追加されます。
@param filenames 追加するファイル名のパターンを指定します。
例:
file_list.include("*.java", "*.cfg")
file_list.include %w( math.c lib.h *.o )... -
RDoc
:: Context # add _ include(an _ include) -> () (6231.0) -
引数で指定した RDoc::Include オブジェクトを追加します。
...引数で指定した RDoc::Include オブジェクトを追加します。
@param an_include RDoc::Include オブジェクトを指定します。... -
RDoc
:: Context # includes -> [RDoc :: Include] (6218.0) -
追加された RDoc::Include の配列を返します。
...追加された RDoc::Include の配列を返します。... -
Module
# included(class _ or _ module) -> () (6141.0) -
self が Module#include されたときに対象のクラスまたはモジュー ルを引数にしてインタプリタがこのメソッドを呼び出します。
...f が 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 (6126.0) -
obj が範囲内に含まれている時に true を返します。 そうでない場合は、false を返します。
...クトを指定します。
//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?, Ran... -
Module
# include?(mod) -> bool (6120.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 (6120.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 (6118.0) -
コマンドライン引数の --include-line-numbers を指定していた場合に true を返します。そうでない場合は false を返します。
...コマンドライン引数の --include-line-numbers を指定していた場合に true
を返します。そうでない場合は false を返します。...