676件ヒット
[1-100件を表示]
(0.142秒)
種類
ライブラリ
- ビルトイン (192)
- forwardable (72)
-
irb
/ context (12) - openssl (36)
- pp (12)
- prettyprint (12)
- psych (48)
-
rdoc
/ context (72) -
rdoc
/ top _ level (48) - singleton (48)
- tracer (12)
クラス
- BasicObject (36)
- Encoding (72)
- Module (12)
- Object (60)
-
OpenSSL
:: SSL :: SSLContext (12) - PP (12)
- PrettyPrint (12)
-
Psych
:: Handler (12) -
Psych
:: Nodes :: Scalar (24) -
RDoc
:: Context (72) -
RDoc
:: TopLevel (48) - Tracer (12)
モジュール
-
OpenSSL
:: SSL (24) - Process (12)
- SingleForwardable (72)
- Singleton (36)
キーワード
- Context (12)
- Emitter (12)
- MACCENTEURO (12)
- MACCROATIAN (12)
- MACTURKISH (12)
- MacCentEuro (12)
- MacCroatian (12)
- MacTurkish (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 3
. 1 . 0 (4) -
OP
_ SINGLE _ DH _ USE (12) -
OP
_ SINGLE _ ECDH _ USE (12) -
SINGLE
_ QUOTED (12) - Singleton (12)
-
add
_ class (12) -
add
_ class _ or _ module (24) -
add
_ module (12) -
all
_ classes _ and _ modules (12) - classes (12)
-
clock
_ gettime (12) - clone (12)
-
def
_ delegator (12) -
def
_ delegators (12) -
def
_ single _ delegator (12) -
def
_ single _ delegators (12) -
define
_ singleton _ method (24) - delegate (12)
- dup (12)
-
each
_ classmodule (12) -
find
_ class _ named (12) -
find
_ local _ symbol (12) - instance (12)
- new (12)
-
rb
_ define _ singleton _ method (12) -
rb
_ obj _ singleton _ methods (12) -
rb
_ singleton _ class (12) -
rb
_ singleton _ class _ attached (12) -
rb
_ singleton _ class _ clone (12) -
rb
_ singleton _ class _ new (12) -
run
_ single _ final (12) - scalar (12)
-
set
_ visibility _ for (12) -
single
_ delegate (12) -
singleline
_ format (12) -
singleline
_ pp (12) - singleton (12)
-
singleton
_ class (12) -
singleton
_ class? (12) -
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12)
検索結果
先頭5件
-
Tracer
:: Single -> Tracer (21201.0) -
@todo
...@todo... -
Psych
:: Nodes :: Scalar :: SINGLE _ QUOTED -> Integer (12317.0) -
single quoted style を表します。
...single quoted style を表します。
@see Psych::Nodes::Scalar.new,
Psych::Nodes::Scalar#style,
Psych::Handler#scalar... -
Object
# singleton _ methods(inherited _ too = true) -> [Symbol] (12300.0) -
そのオブジェクトに対して定義されている特異メソッド名 (public あるいは protected メソッド) の一覧を返します。
...されている特異メソッド名
(public あるいは protected メソッド) の一覧を返します。
inherited_too が真のときは継承した特異メソッドを含みます。
継承した特異メソッドとは Object#extend によって追加された特異メソッドや、
self......。
singleton_methods(false) は、Object#methods(false) と同じです。
@param inherited_too 継承した特異メソッドを含める場合は真を、
そうでない場合は偽を指定します。
//emlist[例1][ruby]{
Parent = Class.new
class <<Parent
private;......def private_class_parent() end
protected; def protected_class_parent() end
public; def public_class_parent() end
end
Foo = Class.new(Parent)
class <<Foo
private; def private_class_foo() end
protected; def protected_class_foo() end
public; def public_class_foo() end
end
module B... -
SingleForwardable
# def _ single _ delegator(accessor , method , ali = method) -> () (12201.0) -
メソッドの委譲先を設定します。
...。
@param accessor 委譲先のオブジェクト
@param method 委譲先のメソッド
@param ali 委譲元のメソッド
委譲元のオブジェクトで ali が呼び出された場合に、
委譲先のオブジェクトの method へ処理が委譲されるようになります。
委......譲元と委譲先のメソッド名が同じ場合は, ali を省略することが可能です。
def_delegator は def_singleton_delegator の別名になります。
@see SingleForwardable#def_delegators... -
SingleForwardable
# def _ single _ delegators(accessor , *methods) -> () (12201.0) -
メソッドの委譲先をまとめて設定します。
...methods 委譲するメソッドのリスト
委譲元のオブジェクトで methods のそれぞれのメソッドが呼び出された場合に、
委譲先のオブジェクトの同名のメソッドへ処理が委譲されるようになります。
def_delegators は def_singleton_delegato......rs の別名になります。
また、以下の 2 つの例は同じ意味です。
def_delegators :@records, :size, :<<, :map
def_delegator :@records, :size
def_delegator :@records, :<<
def_delegator :@records, :map
@see SingleForwardable#def_delegator... -
SingleForwardable
# single _ delegate(hash) -> () (12201.0) -
メソッドの委譲先を設定します。
...メソッドの委譲先を設定します。
@param hash 委譲先のメソッドがキー、委譲先のオブジェクトが値の
Hash を指定します。キーは Symbol、
String かその配列で指定します。
@see Forwardable#delegate... -
BasicObject
# singleton _ method _ added(name) -> object (12200.0) -
特異メソッドが追加された時にインタプリタから呼び出されます。
...Module#method_addedを使います。
@param name 追加されたメソッド名が Symbol で渡されます。
//emlist[例][ruby]{
class Foo
def singleton_method_added(name)
puts "singleton method \"#{name}\" was added"
end
end
obj = Foo.new
def obj.foo
end
#=> singleton method "foo"......was added
//}
@see Module#method_added,BasicObject#singleton_method_removed,BasicObject#singleton_method_undefined... -
BasicObject
# singleton _ method _ removed(name) -> object (12200.0) -
特異メソッドが Module#remove_method に より削除された時にインタプリタから呼び出されます。
...Module#remove_method に
より削除された時にインタプリタから呼び出されます。
通常のメソッドの削除に対するフックには
Module#method_removedを使います。
@param name 削除されたメソッド名が Symbol で渡されます。
//emlist[例][ruby]{
cl......singleton_method_removed(name)
puts "singleton method \"#{name}\" was removed"
end
end
obj = Foo.new
def obj.foo
end
class << obj
remove_method :foo
end
#=> singleton method "foo" was removed
//}
@see Module#method_removed,BasicObject#singleton_method_added,BasicObject#singleton_method_u... -
BasicObject
# singleton _ method _ undefined(name) -> object (12200.0) -
特異メソッドが Module#undef_method または undef により未定義にされた時にインタプリタから呼び出されます。
...特異メソッドが Module#undef_method または
undef により未定義にされた時にインタプリタから呼び出されます。
通常のメソッドの未定義に対するフックには
Module#method_undefined を使います。
@param name 未定義にされたメソッド名......list[例][ruby]{
class Foo
def singleton_method_undefined(name)
puts "singleton method \"#{name}\" was undefined"
end
end
obj = Foo.new
def obj.foo
end
def obj.bar
end
class << obj
undef_method :foo
end
obj.instance_eval {undef bar}
#=> singleton method "foo" was undefined
# singleton......method "bar" was undefined
//}
@see Module#method_undefined,BasicObject#singleton_method_added,BasicObject#singleton_method_removed , d:spec/def#undef...