るりまサーチ

最速Rubyリファレンスマニュアル検索!
440件ヒット [1-100件を表示] (0.153秒)
トップページ > クエリ:i[x] > クエリ:A[x] > クエリ:sin[x] > クエリ:Single[x]

別のキーワード

  1. _builtin to_a
  2. matrix to_a
  3. to_a
  4. dbm to_a
  5. argf.class to_a

検索結果

<< 1 2 3 ... > >>

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 を結びつけます。...

絞り込み条件を変える

<< 1 2 3 ... > >>