资源描述:
《[Understanding.Computation(2013.5)].Tom.Stuart.文字版》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、UnderstandingComputationTomStuartBeijing•Cambridge•Farnham•Köln•Sebastopol•TokyoUnderstandingComputationbyTomStuartCopyright©2013TomStuart.Allrightsreserved.PrintedintheUnitedStatesofAmerica.PublishedbyO’ReillyMedia,Inc.,1005GravensteinHighwayNorth,Sebastopol,CA95472.O’Reillybooksmaybepur
2、chasedforeducational,business,orsalespromotionaluse.Onlineeditionsarealsoavailableformosttitles(http://my.safaribooksonline.com).Formoreinformation,contactourcorporate/institutionalsalesdepartment:800-998-9938orcorporate@oreilly.com.Editors:MikeLoukidesandNathanJepsonIndexer:LucieHaskinsP
3、roductionEditor:ChristopherHearseCoverDesigner:RandyComerCopyeditor:RachelLeachInteriorDesigner:DavidFutatoProofreader:LinleyDolbyIllustrator:RebeccaDemarestMay2013:FirstEdition.RevisionHistoryfortheFirstEdition:2013-05-10Firstrelease2013-05-31SecondreleaseSeehttp://oreilly.com/catalog/er
4、rata.csp?isbn=9781449329273forreleasedetails.NutshellHandbook,theNutshellHandbooklogo,andtheO’ReillylogoareregisteredtrademarksofO’ReillyMedia,Inc.UnderstandingComputation,theimageofabearpawclam,andrelatedtradedressaretrademarksofO’ReillyMedia,Inc.Manyofthedesignationsusedbymanufacturersa
5、ndsellerstodistinguishtheirproductsareclaimedastrademarks.Wherethosedesignationsappearinthisbook,andO’ReillyMedia,Inc.,wasawareofatrademarkclaim,thedesignationshavebeenprintedincapsorinitialcaps.Whileeveryprecautionhasbeentakeninthepreparationofthisbook,thepublisherandauthorsassumenorespo
6、nsibilityforerrorsoromissions,orfordamagesresultingfromtheuseoftheinformationcon-tainedherein.ISBN:978-1-449-32927-3[LSI]1369775863TableofContentsPreface.....................................................................vii1.JustEnoughRuby................................................
7、.......1InteractiveRubyShell1Values2BasicData2DataStructures3Procs3ControlFlow4ObjectsandMethods5ClassesandModules6MiscellaneousFeatures7LocalVariablesandAssignment7StringInterpolation8InspectingObjects8PrintingStrings8VariadicMethods9Blocks9Enumerable10Struct11Monk