るりまサーチ

最速Rubyリファレンスマニュアル検索!
60件ヒット [1-60件を表示] (0.069秒)

別のキーワード

  1. _builtin to_c
  2. etc sc_2_c_dev
  3. etc sc_2_c_bind
  4. tracer display_c_call
  5. tracer display_c_call?

ライブラリ

キーワード

検索結果

RSS::Maker::ChannelBase#docs (24203.0)

@todo

@todo

RSS::Rss::Channel#docs (24203.0)

@todo

@todo

RSS::Maker::ChannelBase#docs=() (12203.0)

@todo

@todo

RSS::Rss::Channel#docs= (12203.0)

@todo

@todo

Module#refine(klass) { ... } -> Module (55.0)

引数 klass で指定したクラスまたはモジュールだけに対して、ブロックで指定した機能を提供で きるモジュールを定義します。定義した機能は Module#refine を使用せずに直 接 klass に対して変更を行う場合と異なり、限られた範囲のみ有効にできます。 そのため、既存の機能を局所的に修正したい場合などに用いる事ができます。

...の詳細については以下を参照してください。

* https://magazine.rubyist.net/articles/0041/0041-200Special-refinement.html
* https://docs.ruby-lang.org/en/master/syntax/refinements_rdoc.html

定義した機能は main.using, Module#using を実行した場合のみ
有効になり...
...機能を持つ無名のモジュールを返します。

//emlist[例][ruby]{
c
lass C
def foo
puts "C#foo"
end
end

module M
refine C do
def foo
puts "C#foo in M"
end
end
end

x = C.new
x.foo # => "C#foo"

using M

x = C.new
x.foo # => "C#foo in M"
//}

@see main.using...

絞り込み条件を変える