1691件ヒット
[1-100件を表示]
(0.057秒)
種類
ライブラリ
- ビルトイン (600)
-
bigdecimal
/ ludcmp (12) - delegate (12)
- erb (12)
- fiddle (24)
-
fiddle
/ types (24) - ipaddr (24)
-
irb
/ ext / math-mode (4) - mkmf (24)
-
net
/ http (12) -
net
/ smtp (12) - objspace (12)
- openssl (84)
- pathname (51)
- profiler (6)
-
rake
/ packagetask (24) - rbconfig (12)
-
rdoc
/ parser / text (12) -
rdoc
/ text (12) -
rexml
/ document (12) -
rexml
/ parsers / sax2parser (60) -
rexml
/ streamlistener (12) -
rinda
/ tuplespace (12) -
rubygems
/ version (12) - set (23)
- singleton (12)
- tsort (93)
-
webrick
/ httpauth / htdigest (12) -
webrick
/ httpauth / htpasswd (12) -
webrick
/ httpresponse (60) -
webrick
/ httpserver (24) -
webrick
/ httputils (12) - win32ole (48)
クラス
- Delegator (12)
-
Gem
:: Version (12) - Hash (48)
- IPAddr (24)
-
IRB
:: Context (4) - Method (24)
- Module (192)
- Object (120)
-
OpenSSL
:: ASN1 :: ObjectId (24) -
OpenSSL
:: X509 :: Extension (24) - Pathname (51)
- Proc (6)
-
RDoc
:: Options (24) -
REXML
:: Parsers :: SAX2Parser (60) -
Rake
:: PackageTask (24) - Range (50)
- Refinement (4)
- Set (32)
- Symbol (12)
- TracePoint (12)
- UnboundMethod (12)
-
WEBrick
:: Cookie (24) -
WEBrick
:: HTTPResponse (60) -
WEBrick
:: HTTPServer (24) - WIN32OLE (36)
-
WIN32OLE
_ VARIANT (12)
モジュール
-
ERB
:: Util (12) - GC (12)
- Kernel (24)
- LUSolve (12)
- ObjectSpace (12)
- Process (24)
-
Process
:: GID (24) -
Process
:: UID (24) -
RDoc
:: Text (12) -
REXML
:: StreamListener (12) - RbConfig (12)
- TSort (93)
-
WEBrick
:: HTTPUtils (12)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - < (12)
- <=> (12)
- === (32)
- BasicTypes (12)
- BlockCaller (12)
- Closure (12)
- Enumerator (12)
- HTTPExceptions (12)
- Htdigest (12)
- Htpasswd (12)
-
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - Namespace (12)
- OCSP (12)
-
Profiler
_ _ (6) - Range (12)
- SMTPError (12)
- SSLServer (12)
- SSLSocket (12)
- Set (3)
- Singleton (12)
- TOPDIR (12)
- Text (12)
- TupleSpace (12)
- WUNTRACED (12)
- Win32Types (12)
-
_ getproperty (12) -
_ invoke (12) -
_ setproperty (12) -
all
_ symbols (12) - ancestors (12)
-
append
_ features (12) - bind (12)
- body= (12)
- chunked= (12)
-
const
_ defined? (12) -
const
_ get (12) -
const
_ source _ location (12) - constants (12)
-
content
_ length (12) -
content
_ length= (12) - cover? (14)
-
defined
_ class (12) -
drb
/ extservm (12) - e2mmap (6)
-
each
_ child (24) -
each
_ entry (15) -
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (46) - entitydecl (12)
- entries (12)
- eql? (12)
- extend (12)
- fiddle (12)
-
fiddle
/ types (12) -
garbage
_ collect (12) - getrlimit (12)
-
has
_ key? (12) -
html
_ escape (12) -
import
_ methods (4) - include? (60)
-
include
_ class _ new (12) -
include
_ line _ numbers (12) - included (12)
- inspect (12)
-
irb
/ completion (12) -
is
_ a? (12) - key? (12)
-
kind
_ of? (12) - listen (60)
- lusolve (12)
- markup (12)
-
math
_ mode= (4) - member? (36)
- methods (12)
-
mime
_ type (12) - mount (12)
- new (72)
-
package
_ files (12) - parse (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) -
rake
/ packagetask (12) -
rb
_ mod _ append _ features (12) -
rb
_ mod _ include _ p (12) - rdoc (12)
-
rdoc
_ include (12) -
respond
_ to? (12) -
respond
_ to _ missing? (24) -
rexml
/ parsers / sax2parser (12) -
rexml
/ parsers / streamparser (12) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby2
_ keywords (6) -
rubygems
/ commands / install _ command (12) - set (9)
-
singleton
_ methods (12) -
strongly
_ connected _ components (12) - switch (48)
-
to
_ s (24) -
top
_ include (12) -
trace
_ object _ allocations (12) -
try
_ cpp (24) - tsort (12)
-
virtual
_ host (12) - オブジェクト (12)
- クラス/メソッドの定義 (12)
- 変数と定数 (12)
検索結果
先頭5件
-
static VALUE include
_ class _ new(VALUE module , VALUE super) (26200.0) -
super をスーパークラスとして モジュールの「化身」クラスを作成し返します。
...super をスーパークラスとして
モジュールの「化身」クラスを作成し返します。... -
Module
# include(*mod) -> self (18179.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]
//}
モジュールの機能追加は、クラスの継承関係の間にそのモジュールが挿入
される... -
VALUE rb
_ mod _ include _ p(VALUE mod , VALUE mod2) (12200.0) -
モジュール mod が mod2 をインクルードしていれば真。
モジュール mod が mod2 をインクルードしていれば真。 -
static VALUE top
_ include(int argc , VALUE *argv) (12200.0) -
-
rexml
/ parsers / sax2parser (12024.0) -
SAX2 と同等の API を持つストリーム式の XML パーサ。
...SAX2 と同等の API を持つストリーム式の XML パーサ。
コールバックをパーサオブジェクトに REXML::Parsers::SAX2Parser#listen で
設定してから REXML::Parsers::SAX2Parser#parse を呼び出すことで、
パーサからコールバックが呼び出されます......X2Listener
を include したクラスのオブジェクトを使う方式があります。詳しくは
REXML::Parsers::SAX2Parser#listen を参照してください。
REXML::Parsers::StreamParser のパーサよりは高機能です。
//emlist[][ruby]{
require 'rexml/parsers/sax2parser'
requir......e 'rexml/sax2listener'
parser = REXML::Parsers::SAX2Parser.new(<<XML)
<root n="0">
<a n="1">111</a>
<b n="2">222</b>
<a n="3">333</a>
</root>
XML
elements = []
parser.listen(:start_element){|uri, localname, qname, attrs|
elements << [qname, attrs]
}
as = []
parser.listen(:start_element, ["... -
rexml
/ parsers / streamparser (12024.0) -
ストリーム式の XML パーサ。
...能なストリーム式パーサが必要な場合は
REXML::Parsers::SAX2Parser を用いてください。
パーサからはコールバックによってパースした情報を受け取ります。
REXML::StreamListener を include し、
必要なメソッドをオーバーライドしたク......ラスのオブジェクトを
コールバックオブジェクトとして REXML::Parsers::StreamParser.new
に渡します。
REXML::Parsers::StreamParser#parse を呼び出すと
パースが開始しその結果によってコールバックが呼び出されます。
コールバックされ......ample] StreamParserの例
この例では tag_start と text をオーバーライドして
開始タグとテキストの情報を受け取れるようにしています。
空白や改行もテキストであることに注意してください。
//emlist[][ruby]{
require 'rexml/parsers/basepar... -
RDoc
:: Options # include _ line _ numbers -> bool (9117.0) -
コマンドライン引数の --include-line-numbers を指定していた場合に true を返します。そうでない場合は false を返します。
...コマンドライン引数の --include-line-numbers を指定していた場合に true
を返します。そうでない場合は false を返します。... -
RDoc
:: Options # rdoc _ include -> [String] (9117.0) -
コマンドライン引数の --include オプションで指定したディレクトリを文字列 の配列で返します。
...コマンドライン引数の --include オプションで指定したディレクトリを文字列
の配列で返します。
指定しなかった場合は ['.'] を返します。... -
Rake
:: PackageTask # package _ files -> Rake :: FileList (9106.0) -
パッケージに含むファイルリストを返します。
...記載例とする
require 'rake/packagetask'
IO.write("test1.rb", "test")
IO.write("test2.rb", "test")
Rake::PackageTask.new("sample", "1.0.0") do |package_task|
package_task.package_files # => []
package_task.package_files.include("*.rb")
package_task.package_files # => ["test1.rb", "test2...