3833件ヒット
[101-200件を表示]
(0.100秒)
ライブラリ
- ビルトイン (2692)
- delegate (12)
- e2mmap (30)
- erb (24)
-
fiddle
/ import (24) - forwardable (48)
- json (60)
-
json
/ add / bigdecimal (12) -
json
/ add / complex (12) -
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / range (12) -
json
/ add / rational (12) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / time (12) -
net
/ http (12) - openssl (36)
- optparse (168)
- pp (36)
- rake (36)
-
rdoc
/ context (48) -
rdoc
/ markup (12) -
rdoc
/ parser (12) -
rdoc
/ stats (12) -
rdoc
/ top _ level (12) - resolv (36)
-
rexml
/ document (24) -
rexml
/ streamlistener (12) -
rubygems
/ remote _ fetcher (12) - set (18)
- timeout (16)
- tsort (93)
- uri (24)
-
webrick
/ httpservlet / abstract (72) -
webrick
/ httputils (60) -
win32
/ registry (12) - win32ole (60)
クラス
-
ARGF
. class (738) - Array (24)
- BasicObject (144)
- BigDecimal (12)
- Class (56)
- Complex (12)
- Date (12)
- DateTime (12)
- ERB (24)
- Exception (24)
- FalseClass (36)
-
Gem
:: RemoteFetcher (12) - Hash (74)
- IO (12)
- Integer (12)
-
JSON
:: Parser (12) - Method (129)
- Module (696)
-
Net
:: HTTPResponse (12) - NilClass (67)
- Object (408)
-
OpenSSL
:: ASN1 :: ASN1Data (24) - OptionParser (168)
- PP (12)
- Proc (14)
-
RDoc
:: Context (48) -
RDoc
:: Markup (12) -
RDoc
:: Parser (12) -
RDoc
:: Stats (12) -
RDoc
:: TopLevel (12) -
REXML
:: CData (24) - Range (12)
- Rational (12)
- Regexp (12)
-
Resolv
:: DNS (36) - Struct (12)
- Thread (24)
-
Thread
:: Backtrace :: Location (48) - Time (12)
- TracePoint (36)
- TrueClass (36)
-
URI
:: Generic (24) - UnboundMethod (24)
-
WEBrick
:: HTTPServlet :: AbstractServlet (72) -
WEBrick
:: HTTPUtils :: FormData (60) -
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ TYPE (24) -
WIN32OLE
_ TYPELIB (24) -
Win32
:: Registry :: PredefinedKey (12)
モジュール
- Enumerable (168)
- Exception2MessageMapper (30)
-
Fiddle
:: Importer (24) - Forwardable (48)
-
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (28)
-
REXML
:: StreamListener (12) -
Rake
:: TaskManager (24) - TSort (93)
キーワード
- ! (12)
- != (12)
- & (36)
- < (12)
- << (14)
- <=> (12)
- == (24)
- === (20)
- =~ (7)
- >> (14)
- DelegateClass (12)
- Fail (6)
- Raise (6)
- [] (24)
- ^ (36)
-
_ _ send _ _ (24) -
_ dump (12) -
_ load (12) -
absolute
_ path (12) - accept (12)
-
add
_ class (12) -
add
_ class _ or _ module (24) -
add
_ module (12) -
add
_ special (12) -
add
_ trace _ func (12) - allocate (12)
- ancestors (12)
-
append
_ features (12) - attr (12)
-
attr
_ accessor (4) -
attr
_ reader (4) -
attr
_ writer (4) - autoload (12)
-
base
_ label (12) - bind (12)
- binmode (12)
- binmode? (12)
- call (24)
-
callee
_ id (12) -
class
_ eval (24) -
class
_ exec (12) -
class
_ variable _ defined? (12) -
class
_ variable _ get (12) -
class
_ variable _ set (12) -
class
_ variables (12) - clone (12)
- close (12)
- closed? (12)
- component (12)
-
const
_ defined? (12) -
const
_ get (12) -
const
_ missing (12) -
const
_ source _ location (12) - constants (12)
-
def
_ class (12) -
def
_ delegator (12) -
def
_ exception (6) -
def
_ instance _ delegator (12) -
def
_ module (12) -
default
_ event _ sources (12) -
default
_ port (12) -
define
_ method (24) -
define
_ singleton _ method (24) -
define
_ task (12) -
defined
_ class (12) - delegate (12)
- display (12)
-
do
_ DELETE (12) -
do
_ GET (12) -
do
_ HEAD (12) -
do
_ OPTIONS (12) -
do
_ POST (12) -
do
_ PUT (12) - dup (12)
- each (48)
-
each
_ byte (24) -
each
_ char (24) -
each
_ classmodule (12) -
each
_ entry (24) -
each
_ line (48) -
each
_ resource (12) -
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (23) - entitydecl (12)
- eof (12)
- eof? (12)
- extend (12)
-
external
_ encoding (12) - fail (6)
- filename (12)
- filename= (12)
- fileno (12)
- getbyte (12)
- getc (12)
- getresource (12)
- getresources (12)
- gets (36)
- handler= (12)
- include (12)
- include? (12)
- included (12)
- inherited (12)
- initialize (12)
-
initialize
_ copy (12) -
inplace
_ mode (12) -
inplace
_ mode= (12) - inspect (48)
-
instance
_ delegate (12) -
instance
_ eval (24) -
instance
_ exec (12) -
instance
_ method (12) -
instance
_ methods (12) -
instance
_ of? (12) -
instance
_ variable _ defined? (12) -
instance
_ variable _ get (12) -
instance
_ variables (12) - intern (12)
-
internal
_ encoding (12) -
is
_ a? (12) -
kind
_ of? (12) - lineno (12)
- lineno= (12)
- lines (42)
-
marshal
_ dump (12) -
marshal
_ load (12) - max (48)
- merge (24)
-
method
_ added (12) -
method
_ defined? (12) -
method
_ id (12) -
method
_ missing (12) -
method
_ removed (12) -
method
_ undefined (12) - methods (12)
- min (48)
-
module
_ eval (24) -
module
_ exec (12) - name (24)
- name= (12)
- new (12)
-
num
_ classes= (12) -
object
_ group (12) -
ole
_ classes (12) -
ole
_ type (12) -
ole
_ types (12) - on (144)
-
original
_ name (24) - parameters (12)
- parse (12)
-
parse
_ files _ matching (12) - pos (12)
- pos= (12)
- prepend (12)
-
prepend
_ features (12) - prepended (12)
-
pretty
_ print (12) -
pretty
_ print _ cycle (12) - print (12)
- printf (12)
- private (48)
-
private
_ class _ method (24) -
private
_ constant (12) -
private
_ method _ defined? (12) -
protected
_ method _ defined? (12) -
public
_ class _ method (24) -
public
_ constant (12) -
public
_ method (12) -
public
_ method _ defined? (12) - putc (12)
- puts (12)
-
rake
_ extension (12) - rationalize (24)
- read (12)
-
read
_ nonblock (12) - readbyte (24)
- readchar (12)
- readline (36)
- readlines (36)
- readpartial (12)
- refine (12)
- reject (12)
-
remove
_ class _ variable (12) -
remove
_ const (12) -
remove
_ instance _ variable (12) -
remove
_ method (12) - replace (12)
- request (12)
-
respond
_ to? (12) -
respond
_ to _ missing? (12) - seek (12)
- send (24)
-
set
_ encoding (36) -
set
_ trace _ func (12) -
singleton
_ class (12) -
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12) -
sort
_ by (24) -
source
_ location (12) -
strongly
_ connected _ components (12) - struct (12)
- subclasses (4)
-
super
_ method (11) - superclass (4)
-
tag
_ class (12) -
tag
_ class= (12) - tell (12)
- timeout (16)
-
to
_ a (48) -
to
_ ary (24) -
to
_ bn (12) -
to
_ h (14) -
to
_ i (12) -
to
_ int (12) -
to
_ io (12) -
to
_ json (168) -
to
_ s (60) -
to
_ set (24) -
to
_ str (12) - tsort (12)
-
tsort
_ each (23) -
undef
_ method (12) - union (12)
- value (24)
- write (12)
- | (36)
検索結果
先頭5件
- RDoc
:: TopLevel # add _ class _ or _ module(collection , class _ type , name , superclass) -> RDoc :: NormalClass | RDoc :: SingleClass | RDoc :: NormalModule - RDoc
:: Context # add _ class(class _ type , name , superclass) -> RDoc :: SingleClass | RDoc :: NormalClass - RDoc
:: Context # each _ classmodule {|m| . . . } -> [RDoc :: SingleClass | RDoc :: NormalClass | RDoc :: NormalModule] - TracePoint
# defined _ class -> Class | module - ERB
# def _ class(superklass=Object , methodname=& # 39;erb& # 39;) -> Class
-
RDoc
:: TopLevel # add _ class _ or _ module(collection , class _ type , name , superclass) -> RDoc :: NormalClass | RDoc :: SingleClass | RDoc :: NormalModule (6533.0) -
collection に name で指定したクラス、モジュールを追加します。
...ルを追加します。
@param collection クラス、モジュールを追加する先を Hash オブジェ
クトで指定します。
@param class_type 追加するクラス、モジュールを RDoc::NormalClass、
RDoc::SingleClass、RDoc::NormalModule オ......ブジェクトのいずれかで指定します。
@param name クラス名を文字列で指定します。
@param superclass 追加するクラスの親クラスを RDoc::NormalClass オ
ブジェクトで指定します。
既に登録済みであった場... -
RDoc
:: Context # add _ class(class _ type , name , superclass) -> RDoc :: SingleClass | RDoc :: NormalClass (6527.0) -
引数で指定したクラスを追加します。
...。
@param class_type 追加するクラス、モジュールを RDoc::NormalClass、
RDoc::SingleClass、RDoc::NormalModule オ
ブジェクトのいずれかで指定します。
@param name クラス名を文字列で指定します。
@param superclass 追......加するクラスの親クラスを RDoc::NormalClass オ
ブジェクトで指定します。... -
RDoc
:: Context # each _ classmodule {|m| . . . } -> [RDoc :: SingleClass | RDoc :: NormalClass | RDoc :: NormalModule] (6307.0) -
追加されたクラス、モジュールに対してブロックを評価します。
...追加されたクラス、モジュールに対してブロックを評価します。
@see RDoc::Context#classes, RDoc::Context#modules... -
TracePoint
# defined _ class -> Class | module (6257.0) -
メソッドを定義したクラスかモジュールを返します。
...メソッドを定義したクラスかモジュールを返します。
//emlist[例][ruby]{
class C; def foo; end; end
trace = TracePoint.new(:call) do |tp|
p tp.defined_class # => C
end.enable do
C.new.foo
end
//}
メソッドがモジュールで定義されていた場合も(include に......//emlist[例][ruby]{
module M; def foo; end; end
class C; include M; end;
trace = TracePoint.new(:call) do |tp|
p tp.defined_class # => M
end.enable do
C.new.foo
end
//}
[注意] 特異メソッドを実行した場合は TracePoint#defined_class は特異クラ
スを返します。また、K......く元のクラスを返します。
//emlist[例][ruby]{
class C; def self.foo; end; end
trace = TracePoint.new(:call) do |tp|
p tp.defined_class # => #<Class:C>
end.enable do
C.foo
end
//}
Kernel.#set_trace_func と TracePoint の上記の差分に注意して
ください。
@see 50864... -
ERB
# def _ class(superklass=Object , methodname=& # 39;erb& # 39;) -> Class (6251.0) -
変換した Ruby スクリプトをメソッドとして定義した無名のクラスを返します。
...を返します。
@param superklass 無名クラスのスーパークラス
@param methodname メソッド名
//emlist[例][ruby]{
require 'erb'
class MyClass_
def initialize(arg1, arg2)
@arg1 = arg1; @arg2 = arg2
end
end
filename = 'example.rhtml' # @arg1 と @arg2 が使われて......いる example.rhtml
erb = ERB.new(File.read(filename))
erb.filename = filename
MyClass = erb.def_class(MyClass_, 'render()')
print MyClass.new('foo', 123).render()
# => test1foo
# test2123
//}... -
Object
# singleton _ class -> Class (6251.0) -
レシーバの特異クラスを返します。 まだ特異クラスがなければ、新しく作成します。
...れ NilClass, TrueClass,
FalseClass を返します。
@raise TypeError レシーバが Integer、Float、Symbol の場合に発生します。
//emlist[][ruby]{
Object.new.singleton_class #=> #<Class:#<Object:0xb7ce1e24>>
String.singleton_class #=> #<Class:String>
nil.singleton_class......#=> NilClass
//}
@see Object#class... -
OpenSSL
:: ASN1 :: ASN1Data # tag _ class=(tag _ class) (6227.0) -
タグクラスを設定します。
...タグクラスを設定します。
@param tag_class 設定するタグクラス。:UNIVERSAL、:ONTEXT_SPECIFIC、:APPLICATION、:PRIVATE のいずれか
@see OpenSSL::ASN1::ASN1Data#tag_class... -
Kernel
# DelegateClass(superclass) -> object (6219.0) -
クラス superclass のインスタンスへメソッドを委譲するクラスを定義し、 そのクラスを返します。
...クラス superclass のインスタンスへメソッドを委譲するクラスを定義し、
そのクラスを返します。
@param superclass 委譲先となるクラス
例:
//emlist{
require 'delegate'
class ExtArray < DelegateClass(Array)
def initialize
super([])
end
end
a = E......xtArray.new
p a.class # => ExtArray
a.push 25
p a # => [25]
//}... -
Module
# class _ eval {|mod| . . . } -> object (6169.0) -
モジュールのコンテキストで文字列 expr またはモジュール自身をブロックパラメータとするブロックを 評価してその結果を返します。
...。
つまり、そのモジュールの定義式の中にあるかのように実行されます。
ただし、ローカル変数は module_eval/class_eval の外側のスコープと共有します。
定数とクラス変数のスコープは、文字列が与えられた場合とブロック......ます。
@param expr 評価される文字列。
@param fname 文字列を指定します。ファイル fname に文字列 expr が書かれているかのように実行されます。
スタックトレースの表示などを差し替えることができます。
@param lineno......きます。
//emlist[例][ruby]{
class C
end
a = 1
C.class_eval %Q{
def m # メソッドを動的に定義できる。
return :m, #{a}
end
}
p C.new.m #=> [:m, 1]
//}
//emlist[定数のスコープが異なる例][ruby]{
class C
end
# ブロックが渡された...