Ruby is an increasingly popular, fully object-oriented dynamic programming language, hailed by many practitioners as the finest and most useful language available today. When Ruby first burst onto the scene in the Western world, the Pragmatic Programmers were there with the definitive reference manu
Programming Ruby: The Pragmatic Programmers' Guide, Second Edition
โ Scribed by Dave Thomas, Chad Fowler, Andy Hunt
- Publisher
- Pragmatic Bookshelf
- Year
- 2004
- Tongue
- English
- Leaves
- 834
- Edition
- 2nd
- Category
- Library
No coin nor oath required. For personal study only.
โฆ Synopsis
I found this book to be very informative. I am new to Ruby however I have read many other programming books. This book is comprehensive a very good guide for examples for code and most of all the book is laid out in a very comprehensive way. I had no problems finding code concerns that I had and needed to understand. This book is for the serious Ruby programmer.
โฆ Table of Contents
Preface......Page 19
Road Map......Page 26
Part I---Facets of Ruby......Page 30
Installing Ruby......Page 31
Running Ruby......Page 33
Ruby Documentation: RDoc and ri......Page 36
Ruby Is an Object-Oriented Language......Page 38
Some Basic Ruby......Page 40
Arrays and Hashes......Page 43
Control Structures......Page 45
Regular Expressions......Page 46
Blocks and Iterators......Page 48
Reading and 'Riting......Page 50
Onward and Upward......Page 51
Classes, Objects, and Variables......Page 52
Inheritance and Messages......Page 54
Objects and Attributes......Page 56
Class Variables and Class Methods......Page 60
Access Control......Page 64
Variables......Page 66
Containers......Page 69
Blocks and Iterators......Page 75
Containers Everywhere......Page 83
Numbers......Page 84
Strings......Page 86
Ranges......Page 91
Regular Expressions......Page 93
Defining a Method......Page 103
Calling a Method......Page 105
Expressions......Page 110
Operator Expressions......Page 111
Miscellaneous Expressions......Page 112
Assignment......Page 113
Conditional Execution......Page 116
Case Expressions......Page 121
Loops......Page 123
Variable Scope, Loops, and Blocks......Page 128
The Exception Class......Page 130
Handling Exceptions......Page 131
Raising Exceptions......Page 135
Catch and Throw......Page 137
Namespaces......Page 139
Mixins......Page 140
Composing Modules......Page 142
Including Other Files......Page 145
What Is an IO Object?......Page 148
Opening and Closing Files......Page 149
Reading and Writing Files......Page 150
Talking to Networks......Page 154
Multithreading......Page 156
Controlling the Thread Scheduler......Page 161
Mutual Exclusion......Page 162
Running Multiple Processes......Page 168
Unit Testing......Page 172
Test::Unit Framework......Page 173
Structuring Tests......Page 177
Organizing and Running Tests......Page 180
Ruby Debugger......Page 184
Interactive Ruby......Page 185
Editor Support......Page 186
But It Doesn't Work!......Page 188
But It's Too Slow!......Page 191
Part II---Ruby in Its Setting......Page 195
Command-Line Arguments......Page 196
Program Termination......Page 199
Environment Variables......Page 200
Where Ruby Finds Its Modules......Page 201
Build Environment......Page 202
Command Line......Page 203
Configuration......Page 208
Commands......Page 212
rtags and xmp......Page 214
Adding RDoc to Ruby Code......Page 216
Adding RDoc to C Extensions......Page 224
Running RDoc......Page 228
Displaying Program Usage......Page 229
Package Management with RubyGems......Page 232
Installing Application Gems......Page 233
Installing and Using Gem Libraries......Page 235
Creating Your Own Gems......Page 240
Writing CGI Scripts......Page 251
Cookies......Page 260
Choice of Web Servers......Page 263
SOAP and Web Services......Page 265
More Information......Page 269
Simple Tk Application......Page 270
Widgets......Page 271
Binding Events......Page 275
Canvas......Page 276
Scrolling......Page 278
Translating from Perl/Tk Documentation......Page 280
Getting Ruby for Windows......Page 282
Win32API......Page 283
Windows Automation......Page 284
Your First Extension......Page 290
Ruby Objects in C......Page 293
The Jukebox Extension......Page 299
Memory Allocation......Page 308
Ruby Type System......Page 309
Creating an Extension......Page 311
Embedding a Ruby Interpreter......Page 316
Bridging Ruby to Other Languages......Page 319
Ruby C Language API......Page 320
Part III---Ruby Crystallized......Page 330
Source Layout......Page 331
The Basic Types......Page 333
Names......Page 342
Variables and Constants......Page 344
Predefined Variables......Page 347
Expressions......Page 352
Boolean Expressions......Page 355
case Expressions......Page 357
Loop Constructs......Page 358
Method Definition......Page 359
Invoking a Method......Page 362
Aliasing......Page 365
Class Definition......Page 366
Module Definitions......Page 368
Blocks, Closures, and Proc Objects......Page 370
Exceptions......Page 374
Catch and Throw......Page 376
Duck Typing......Page 378
Classes Aren't Types......Page 379
Coding like a Duck......Page 383
Standard Protocols and Coercions......Page 384
Walk the Walk, Talk the Talk......Page 390
How Classes and Objects Interact......Page 391
Class and Module Definitions......Page 399
Inheritance and Visibility......Page 405
Freezing Objects......Page 406
Locking Ruby in the Safe......Page 408
Safe Levels......Page 409
Tainted Objects......Page 410
Reflection, ObjectSpace, and Distributed Ruby......Page 413
Looking at Objects......Page 414
Looking at Classes......Page 415
Calling Methods Dynamically......Page 417
System Hooks......Page 420
Tracing Your Program's Execution......Page 422
Marshaling and Distributed Ruby......Page 424
Compile Time? Runtime? Anytime!......Page 429
Part IV---Ruby Library Reference......Page 430
Built-in Classes and Modules......Page 431
Alphabetical Listing......Page 432
Array......Page 435
Bignum......Page 449
Binding......Page 452
Class......Page 453
Comparable......Page 455
Continuation......Page 456
Dir......Page 457
Enumerable......Page 462
Errno......Page 468
Exception......Page 469
FalseClass......Page 472
File......Page 473
File::Stat......Page 485
FileTest......Page 491
Fixnum......Page 492
Float......Page 495
GC......Page 499
Hash......Page 500
Integer......Page 509
IO......Page 511
Kernel......Page 524
Marshal......Page 543
MatchData......Page 545
Math......Page 548
Method......Page 551
Module......Page 553
NilClass......Page 569
Numeric......Page 570
Object......Page 575
ObjectSpace......Page 586
Proc......Page 588
Process......Page 591
Process::GID......Page 597
Process::Status......Page 599
Process::Sys......Page 602
Process::UID......Page 604
Range......Page 605
Regexp......Page 608
Signal......Page 612
String......Page 614
Struct......Page 634
Struct::Tms......Page 638
Symbol......Page 639
Thread......Page 641
ThreadGroup......Page 648
Time......Page 650
TrueClass......Page 658
UnboundMethod......Page 659
Standard Library......Page 661
Abbrev......Page 663
Base64......Page 664
Benchmark......Page 665
BigDecimal......Page 666
CGI......Page 667
CGI::Session......Page 669
Complex......Page 670
CSV......Page 671
Curses......Page 672
Date/DateTime......Page 673
DBM......Page 674
Delegator......Page 675
Digest......Page 676
DL......Page 677
dRuby......Page 678
English......Page 679
Enumerator......Page 680
erb......Page 681
Etc......Page 683
expect......Page 684
Fcntl......Page 685
FileUtils......Page 686
Find......Page 687
Forwardable......Page 688
ftools......Page 689
GDBM......Page 690
Generator......Page 691
GetoptLong......Page 692
GServer......Page 693
Iconv......Page 694
IO/Wait......Page 695
IPAddr......Page 696
jcode......Page 697
Logger......Page 698
Mail......Page 699
mathn......Page 700
Matrix......Page 702
Monitor......Page 703
Mutex......Page 704
Mutex_m......Page 705
Net::FTP......Page 706
Net::HTTP......Page 707
Net::IMAP......Page 709
Net::POP......Page 710
Net::SMTP......Page 711
Net::Telnet......Page 712
NKF......Page 713
Observable......Page 714
open-uri......Page 715
Open3......Page 716
OpenSSL......Page 717
OpenStruct......Page 718
OptionParser......Page 719
ParseDate......Page 721
Pathname......Page 722
PP......Page 723
PrettyPrint......Page 724
Profile......Page 725
Profiler__......Page 726
PStore......Page 727
PTY......Page 728
Rational......Page 729
readbytes......Page 730
Readline......Page 731
Resolv......Page 732
REXML......Page 733
Rinda......Page 735
RSS......Page 736
Scanf......Page 737
SDBM......Page 738
Set......Page 739
Shellwords......Page 740
Singleton......Page 741
SOAP......Page 742
Socket......Page 743
StringIO......Page 744
StringScanner......Page 745
Sync......Page 746
Syslog......Page 748
Tempfile......Page 749
Test::Unit......Page 750
thread......Page 751
ThreadsWait......Page 752
Time......Page 753
Timeout......Page 754
Tk......Page 755
tmpdir......Page 756
Tracer......Page 757
TSort......Page 758
un......Page 759
URI......Page 760
WeakRef......Page 761
WEBrick......Page 762
Win32API......Page 763
WIN32OLE......Page 764
XMLRPC......Page 765
YAML......Page 766
Zlib......Page 767
Part V---Appendixes......Page 768
Socket Library......Page 769
BasicSocket......Page 770
Socket......Page 772
IPSocket......Page 776
TCPSocket......Page 777
SOCKSSocket......Page 778
TCPServer......Page 779
UDPSocket......Page 780
UNIXSocket......Page 782
UNIXServer......Page 783
mkmf......Page 784
Web Sites......Page 787
Mailing Lists......Page 788
Summary Tables......Page 790
Local Disk......Page 0
file:///C|/Documents and Settings/me/ใในใฏใใใ/desktop/pictures/getpedia.html......Page 1
๐ SIMILAR VOLUMES
Ruby is an increasingly popular, fully object-oriented dynamic programming language, hailed by many practitioners as the finest and most useful language available today. When Ruby first burst onto the scene in the Western world, the Pragmatic Programmers were there with the definitive reference manu
I found this book to be very informative. I am new to Ruby however I have read many other programming books. This book is comprehensive a very good guide for examples for code and most of all the book is laid out in a very comprehensive way. I had no problems finding code concerns that I had and nee
Ruby is an increasingly popular, fully object-oriented dynamic programming language, hailed by many practitioners as the finest and most useful language available today. When Ruby first burst onto the scene in the Western world, the Pragmatic Programmers were there with the definitive reference man
<DIV><p>Ruby is an increasingly popular, fully object-oriented dynamic programming language, hailed by many practitioners as the finest and most useful language available today. When Ruby first burst onto the scene in the Western world, the Pragmatic Programmers were there with the definitive refer