ライブラリ
- ビルトイン (88)
- forwardable (77)
- prettyprint (11)
- psych (11)
-
rdoc
/ context (66) -
rdoc
/ parser / ruby (11) -
rdoc
/ single _ class (11) -
rdoc
/ top _ level (44) - singleton (22)
- tracer (11)
クラス
- BasicObject (33)
- Module (11)
- Object (44)
- PrettyPrint (11)
-
Psych
:: Nodes :: Scalar (11) -
RDoc
:: Context (66) -
RDoc
:: Parser :: Ruby (11) -
RDoc
:: TopLevel (44) - Tracer (11)
モジュール
- SingleForwardable (66)
- Singleton (11)
キーワード
- SINGLE (11)
-
SINGLE
_ QUOTED (11) - SingleClass (11)
- SingleForwardable (11)
- Singleton (11)
-
add
_ class (11) -
add
_ class _ or _ module (22) -
add
_ module (11) -
all
_ classes _ and _ modules (11) - classes (11)
-
def
_ delegator (11) -
def
_ delegators (11) -
def
_ single _ delegator (11) -
def
_ single _ delegators (11) -
define
_ singleton _ method (22) - delegate (11)
-
each
_ classmodule (11) -
find
_ class _ named (11) -
find
_ local _ symbol (11) - instance (11)
-
rb
_ define _ singleton _ method (11) -
rb
_ obj _ singleton _ methods (11) -
rb
_ singleton _ class (11) -
rb
_ singleton _ class _ attached (11) -
rb
_ singleton _ class _ clone (11) -
rb
_ singleton _ class _ new (11) -
rdoc
/ single _ class (11) -
run
_ single _ final (11) -
set
_ visibility _ for (11) -
single
_ delegate (11) -
singleline
_ format (11) -
singleton
_ class (11) -
singleton
_ class? (11) -
singleton
_ method (11) -
singleton
_ method _ added (11) -
singleton
_ method _ removed (11) -
singleton
_ method _ undefined (11)
検索結果
先頭5件
-
PrettyPrint
. singleline _ format(output = & # 39;& # 39; , maxwidth = 79 , newline = "\n" , genspace = lambda{|n| & # 39; & # 39; * n}) {|pp| . . . } -> object (33600.0) -
PrettyPrint オブジェクトを生成し、それを引数としてブロックを実行します。 PrettyPrint.format に似ていますが、改行しません。
...PrettyPrint オブジェクトを生成し、それを引数としてブロックを実行します。
PrettyPrint.format に似ていますが、改行しません。
引数 maxwidth, newline と genspace は無視されます。ブロック中の breakable の実行は、
改行せずに text......の実行であるかのように扱います。
@param output 出力先を指定します。output は << メソッドを持っていなければなりません。
@param maxwidth 無視されます。
@param newline 無視されます。
@param genspace 無視されます。... -
Tracer
:: Single -> Tracer (33401.0) -
@todo
@todo -
static VALUE run
_ single _ final(VALUE *args) (30400.0) -
-
BasicObject
# singleton _ method _ undefined(name) -> object (24500.0) -
特異メソッドが Module#undef_method または undef により未定義にされた時にインタプリタから呼び出されます。
...ndefined を使います。
@param name 未定義にされたメソッド名が Symbol で渡されます。
//emlist[例][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... -
Object
# singleton _ class -> Class (24500.0) -
レシーバの特異クラスを返します。 まだ特異クラスがなければ、新しく作成します。
...が nil か true か false なら、それぞれ 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... -
VALUE rb
_ singleton _ class(VALUE obj) (24500.0) -
obj に特異クラスを導入し、その特異クラスを返します。 すでに特異クラスが導入されているときはそれをそのまま返します。
obj に特異クラスを導入し、その特異クラスを返します。
すでに特異クラスが導入されているときはそれをそのまま返します。
obj が特異メソッドを定義できない型のオブジェクトである
ときは例外 TypeError を発生します。 -
VALUE rb
_ singleton _ class _ clone(VALUE klass) (24500.0) -
特異クラス klass を clone して返します。 klass が特異クラスでないときはただ klass を返します。
...特異クラス klass を clone して返します。
klass が特異クラスでないときはただ klass を返します。... -
VALUE rb
_ singleton _ class _ new(VALUE super) (24500.0) -
super をスーパークラスとする特異クラスを生成し、返します。
super をスーパークラスとする特異クラスを生成し、返します。 -
void rb
_ define _ singleton _ method(VALUE obj , const char *name , VALUE (*func)() , int argc) (24500.0) -
obj に特異メソッド name を定義します。 メソッドの実体を func に関数ポインタで与え、その関数がとる 引数のタイプを argc に渡します。argc のフォーマットに ついては rb_define_method の記述を参照してください。
...obj に特異メソッド name を定義します。
メソッドの実体を func に関数ポインタで与え、その関数がとる
引数のタイプを argc に渡します。argc のフォーマットに
ついては rb_define_method の記述を参照してください。... -
void rb
_ singleton _ class _ attached(VALUE klass , VALUE obj) (24500.0) -
特異クラス klass にその唯一のインスタンス obj を結びつけます。
...特異クラス klass にその唯一のインスタンス obj を結びつけます。...