701件ヒット
[101-200件を表示]
(0.093秒)
種類
ライブラリ
- ビルトイン (228)
- forwardable (84)
-
irb
/ context (12) - openssl (24)
- prettyprint (12)
- psych (48)
-
rdoc
/ context (72) -
rdoc
/ parser / ruby (12) -
rdoc
/ single _ class (12) -
rdoc
/ top _ level (48) - tracer (12)
クラス
- BasicObject (12)
- Encoding (192)
- Object (12)
- PrettyPrint (12)
-
Psych
:: Handler (12) -
Psych
:: Nodes :: Scalar (24) -
RDoc
:: Context (72) -
RDoc
:: Parser :: Ruby (12) -
RDoc
:: TopLevel (48) - Tracer (12)
モジュール
-
OpenSSL
:: SSL (24) - Process (12)
- SingleForwardable (72)
キーワード
- CP878 (12)
- Context (12)
- Emitter (12)
-
KOI8
_ R (12) - MACCENTEURO (12)
- MACCROATIAN (12)
- MACCYRILLIC (12)
- MACGREEK (12)
- MACROMAN (12)
- MACROMANIA (12)
- MACTURKISH (12)
- MacCentEuro (12)
- MacCroatian (12)
- MacCyrillic (12)
- MacGreek (12)
- MacRoman (12)
- MacRomania (12)
- MacTurkish (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) -
OP
_ SINGLE _ DH _ USE (12) -
OP
_ SINGLE _ ECDH _ USE (12) -
SINGLE
_ QUOTED (12) - Single (12)
- SingleClass (12)
- SingleForwardable (12)
-
add
_ class (12) -
add
_ class _ or _ module (24) -
add
_ module (12) -
all
_ classes _ and _ modules (12) - classes (12)
-
clock
_ gettime (12) -
def
_ delegator (12) -
def
_ delegators (12) -
def
_ single _ delegator (12) -
def
_ single _ delegators (12) - delegate (12)
-
each
_ classmodule (12) -
find
_ class _ named (12) -
find
_ local _ symbol (12) - irb (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) -
rdoc
/ single _ class (12) -
run
_ single _ final (12) - scalar (12)
-
set
_ visibility _ for (12) -
single
_ delegate (12) -
singleline
_ format (12) -
singleton
_ method _ removed (12) -
singleton
_ methods (12)
検索結果
先頭5件
- RDoc
:: Parser :: Ruby :: SINGLE -> "<<" - SingleForwardable
# def _ single _ delegator(accessor , method , ali = method) -> () - SingleForwardable
# def _ single _ delegators(accessor , *methods) -> () - BasicObject
# singleton _ method _ removed(name) -> object - PrettyPrint
. singleline _ format(output = & # 39;& # 39; , maxwidth = 79 , newline = "\n" , genspace = lambda{|n| & # 39; & # 39; * n}) {|pp| . . . } -> object
-
RDoc
:: Parser :: Ruby :: SINGLE -> "<<" (21101.0) -
RDoc::SingleClass type
...
RDoc::SingleClass type... -
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) -
メソッドの委譲先をまとめて設定します。
...メソッドの委譲先をまとめて設定します。
@param accessor 委譲先のオブジェクト
@param methods 委譲するメソッドのリスト
委譲元のオブジェクトで methods のそれぞれのメソッドが呼び出された場合に、
委譲先のオブジェクトの......tors は def_singleton_delegators の別名になります。
また、以下の 2 つの例は同じ意味です。
def_delegators :@records, :size, :<<, :map
def_delegator :@records, :size
def_delegator :@records, :<<
def_delegator :@records, :map
@see SingleForwardable#def_delegator... -
BasicObject
# singleton _ method _ removed(name) -> object (12200.0) -
特異メソッドが Module#remove_method に より削除された時にインタプリタから呼び出されます。
...Module#remove_method に
より削除された時にインタプリタから呼び出されます。
通常のメソッドの削除に対するフックには
Module#method_removedを使います。
@param name 削除されたメソッド名が Symbol で渡されます。
//emlist[例][ruby]{
c......def 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_m... -
PrettyPrint
. singleline _ format(output = & # 39;& # 39; , maxwidth = 79 , newline = "\n" , genspace = lambda{|n| & # 39; & # 39; * n}) {|pp| . . . } -> object (12200.0) -
PrettyPrint オブジェクトを生成し、それを引数としてブロックを実行します。 PrettyPrint.format に似ていますが、改行しません。
...PrettyPrint オブジェクトを生成し、それを引数としてブロックを実行します。
PrettyPrint.format に似ていますが、改行しません。
引数 maxwidth, newline と genspace は無視されます。ブロック中の breakable の実行は、
改行せずに text......の実行であるかのように扱います。
@param output 出力先を指定します。output は << メソッドを持っていなければなりません。
@param maxwidth 無視されます。
@param newline 無視されます。
@param genspace 無視されます。... -
SingleForwardable (12006.0)
-
オブジェクトに対し、メソッドの委譲機能を定義するモジュールです。
...:
require 'forwardable'
g = Goo.new
g.extend SingleForwardable
g.def_delegator("@out", :puts)
g.puts ...
また、SingleForwardable はクラスやモジュールに対して以下のようにする事もできます。
require 'forwardable'
class Implementation
def self.service......puts "serviced!"
end
end
module Facade
extend SingleForwardable
def_delegator :Implementation, :service
end
Facade.service # => serviced!
もし Forwardable と SingleForwardable の両方を使いたい場合、
def_instance_delegator と def_single_delegator メソッ... -
Psych
:: Nodes :: Scalar :: SINGLE _ QUOTED -> Integer (9217.0) -
single quoted style を表します。
...single quoted style を表します。
@see Psych::Nodes::Scalar.new,
Psych::Nodes::Scalar#style,
Psych::Handler#scalar... -
Tracer
:: Single -> Tracer (9201.0) -
@todo
@todo -
SingleForwardable
# def _ delegator(accessor , method , ali = method) -> () (9101.0) -
メソッドの委譲先を設定します。
...メソッドの委譲先を設定します。
@param accessor 委譲先のオブジェクト
@param method 委譲先のメソッド
@param ali 委譲元のメソッド
委譲元のオブジェクトで ali が呼び出された場合に、
委譲先のオブジェクトの method へ処理が......委譲されるようになります。
委譲元と委譲先のメソッド名が同じ場合は, ali を省略することが可能です。
def_delegator は def_singleton_delegator の別名になります。
@see SingleForwardable#def_delegators...