Upgrade to Pro — share decks privately, control downloads, hide ads and more …

はじめての Rubyハッキング!Objectクラスにメソッドを生やしてみる

はじめての Rubyハッキング!Objectクラスにメソッドを生やしてみる

Fumiya Shibusawa

December 15, 2019
Tweet

More Decks by Fumiya Shibusawa

Other Decks in Programming

Transcript

  1. ͜ΜͳΤϥʔ͋Δ͔΋ 'PMMPXJOHFYUFOTJPOTBSFOPUDPNQJMFE HECN  $PVMEOPUCFDPOpHVSFE*UXJMMOPUCFJOTUBMMFE  $IFDLFYUHECNNLNGMPHGPSNPSFEFUBJMT 'JYUIFQSPCMFNT UIFOSFNPWFUIFTFEJSFDUPSJFTBOEUSZBHBJOJGZPVXBOU (FOFSBUJOH3%PDEPDVNFOUBUJPO

    NJOJSVCZ*SVCZMJC**FYUDPNNPOSVCZUPPMSVOSVCZSCFYUPVUFYUEJTBCMFHFNTSVCZMJCFYFDSEPD SPPUSVCZFODPEJOH65'BMMSJPQFYUSEPDQBHFEJSSVCZEPDOPGPSDFVQEBUFSVCZ 1BSTJOHTPVSDFT <>6TFSTGVNJZBTIJCVTBXBXPSLTQBDFQFSTPOBMSVCZNSJSVCZEPDTZOUBYSFpOFNFOUTSEPD (FOFSBUJOH3*GPSNBUJOUP6TFSTGVNJZBTIJCVTBXBXPSLTQBDFQFSTPOBMSVCZNSJCVJMEFYUSEPD 'JMFT $MBTTFT VOEPDVNFOUFE  .PEVMFT VOEPDVNFOUFE  $POTUBOUT VOEPDVNFOUFE  "UUSJCVUFT VOEPDVNFOUFE  .FUIPET VOEPDVNFOUFE  5PUBM VOEPDVNFOUFE  EPDVNFOUFE &MBQTFET CSFXJOTUBMMHECNΛͯ͠࠶౓NBLFK͢Ε͹0,
  2. ϝιουΛఆٛͯ͠Έ͍ͨ w 3VCZͷ֤Ϋϥε͸Ϋϥε໊DʹͦΕͧΕఆ͍ٛͯ͠ ΔͬΆ͍ w SC@EFpOF@DMBTT lΫϥε໊z ͰΫϥεΛॳظԽʁͯ͠Δ w SC@EFpOF@N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