欢迎来到天天文库
浏览记录
ID:34818612
大小:2.33 MB
页数:147页
时间:2019-03-11
《Humble_Little_Ruby_Book.pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、MR.NEIGHBORLY'SHUMBLELITTLERUBYBOOKMR.NEIGHBORLY'SHUMBLELITTLERUBYBOOKJeremyMcAnallyAllcontent©2006JeremyMcAnally.AllRightReserved.Thatmeansdon'tcopyit.Formywife,friends,andfamily,thankyouforthesupportandfood.Mostlythefood.TABLEOFCONTENTSWhat'chutalkin''bout,Mister?40Wha
2、tIsRubyAnyhow?4InstallingRuby6Windows6·MacOSX6·Linux7Let'stryherout!8WelcometoRuby101BasicConceptsofRuby10TypesinRuby11Strings11·Numbers13Collections14TheRange15·TheArray16·TheHash20VariablesandtheLike23Breakitdownnow!272Methods27DefiningMethods28·UsingMethods30Blocksand
3、ProcObjects31BlockBasics31·ProcsandBlocks33·BuildingBlocks35Yourobjectslackclass!36DefiningClasses37·MethodsandVariables38·Attributes40·AccessControl41·ClassScopedObjects42Modules44CreatingModules44Files46Hustleandflow(control)483Conditionals48Theifstatement48·ThecaseSta
4、tement51Loops53ConditionalLoops53·IteratingLoopsandBlocks54·StatementModifiers55·ControllingLoops56Exceptions58HandlingExceptions58·RaisingExceptions61·MyOwnException62·ThrowandCatch62TheSystemBeneath644FilesystemInteraction64Writingtoafile66·Morefileoperations67Threadsa
5、ndForksandProcesses,OhMy!68Rubythreadbasics68·Controllingthreads70·Gettinginformationfromthreads71·Processes,theotherwaytodostuff72FortheEnvironment!73Environmentvariablesandthelike73·Thecommandlineandyou73·Rubyanditslittlecornerofyourcomputer74Win32andBeyond75API75·TheR
6、egistry77·OLEAutomation79LookingBeyondHome835NetworkingandtheWeb83SocketProgramming83·HTTPNetworking86OtherNetworkServices92·WebServices95It'sLikeDistributedorSomething...96Datamybase,please!98It'saLibrary!1016StringManipulation101InstanceMethods101·RegularExpressions104
7、Date/Time106Dates106·Times107·DatesandTimes109HashingandCryptography109Hashing109·Cryptography110Unittesting111AppendixALinksandtheLike116AppendixBHighPerformanceRubywithC/C++118ANoteInthefollowingbook,IwillbeusingRuby1.8.5totestalltheRubycode.Eachexamplecanbecopiedandpa
8、steddirectlyintoirb/fxrianditshouldworkfamously.Ihavedonesowitheachonetomakesuretheyrun.EachtimeIamshow
此文档下载收益归作者所有
点击更多查看相关文章~~