8. ãªã«ããgem? ä¾ãã°... Predef.predef SomeExternalClass, :method_you_know do|*args| p args super(*args) end âã¿ããã«ãã㨠対象ã®ã¡ã½ããã®åå¾ã«å¥½ããªå¦çãå ãããã¡ãã⪠ãã®å ´åãå¼æ°ãåºåããå¦çãå ãã¡ãã⪠9. ãªã«ããgem? ãã£ã¦ããã¨ã¯å®è³ªããâã¨åã module Wrapper def method_you_know *args p args super(*args) end end class SomeExternalClass prepend Wrapper end 詳ããã¯prependã§ã°ã°ã£ã¦ãã ããã
{{#tags}}- {{label}}
{{/tags}}