エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
ここにツイート内容が記載されます https://b.hatena.ne.jp/URLはspanで囲んでください
Twitterで共有ONにすると、次回以降このダイアログを飛ばしてTwitterに遷移します
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
Refinements with method_missing and respond_to_missing? behaves very strangely. class C; end usin... Refinements with method_missing and respond_to_missing? behaves very strangely. class C; end using Module.new { refine C do def x() p:x; end def method_missing(m, *args) m == :foo ? p(:fooo!) : super end def respond_to_missing?(m, include_private = false) (m == :foo) || super end end } C.new.x p C.new.respond_to? :foo C.new.foo The script above doesn't respond_to :foo nor run :foo as expected. Act