1 option
Learning Ruby / Michael Fitzgerald.
- Format:
- Book
- Author/Creator:
- Fitzgerald, Michael.
- Language:
- English
- Subjects (All):
- Object-oriented programming languages.
- Ruby (Computer program language).
- Physical Description:
- 1 online resource (424 p.)
- Edition:
- First edition.
- Place of Publication:
- Sebastopol, California : O'Reilly, 2007.
- Language Note:
- English
- System Details:
- text file
- Summary:
- You don't have to know everything about a car to drive one, and you don't need to know everything about Ruby to start programming with it. Written for both experienced and new programmers alike, Learning Ruby is a just-get-in-and-drive book -- a hands-on tutorial that offers lots of Ruby programs and lets you know how and why they work, just enough to get you rolling down the road. Interest in Ruby stems from the popularity of Rails, the web development framework that's attracting new devotees and refugees from Java and PHP. But there are plenty of other uses for this
- Contents:
- Learning Ruby; How This Book Works; About the Examples; How This Book Is Organized; Conventions Used in This Book; Comments and Questions; Safari® Enabled; Acknowledgments; 1. Ruby Basics; Shebang!; Issue a System Command; Appending a String; Multiply; Inserting a Shell Command; Using a Variable; Expression Substitution; Formatting a String; The eval Method and -e Option; Getting Input from the Keyboard; Methods; The block; The each Method; The proc; XML; The Class; The Tk Toolkit; Editing and Running Ruby in TextMate; Interactive Ruby; Resources; Installing Ruby
- Installing Ruby on Windows with the One-Click InstallerInstalling Ruby on Windows with Binaries; Installing Ruby on Linux; Permission Denied; Associating File Types on Windows; Review Questions; 2. A Quick Tour of Ruby; Ruby&s Reserved Words; Comments; Variables; Instance Variables; Class Variables; Global Variables; Constants; Parallel Assignment; Strings; Numbers and Operators; Conditional Statements; Arrays and Hashes; Methods; Method Name Conventions; Default Arguments; Variable Arguments; Aliasing Methods; Blocks; Procs; Symbols; Exception Handling; Ruby Documentation; Review Questions
- 3. Conditional LoveThe Ternary Operator; The case Statement; The while Loop; unless and until; The loop Method; The for loop; The upto Method; The downto Method; Execution Before or After a Program; Review Questions; 4. Strings; Here Documents; Concatenating Strings; Accessing Strings; Comparing Strings; Manipulating Strings; Changing All or Part of a String; The chomp and chop Methods; The delete Method; Substitute the Substring; Turn It Around; From a String to an Array; Case Conversion; downcase, upcase, and swapcase; Managing Whitespace, etc.; Incrementing Strings; Converting Strings
- Regular Expressions1.9 and Beyond; Review Questions; 5. Math; Converting Numbers; Basic Math Operations; Equality, Less Than, or Greater Than; Abbreviated Assignment Operators; Operators; Ranges; Inquiring About Numbers; More Math Methods; Math Functions; Rational Numbers; Prime Numbers; Review Questions; 6. Arrays; Creating an Array with a Block; There&s an Easier Way; It Gets Even Easier; Accessing Elements; Concatenation; Set Operations; Unique Elements; Blow Your Stack; Comparing Arrays; Changing Elements; Using shift and unshift; Deleting Elements; Arrays and Blocks
- Sorting Things and About FaceMultidimensional Arrays; 1.9 and Beyond; Other Array Methods; Review Questions; 7. Hashes; Accessing Hashes; Iterating over Hashes; Changing Hashes; Sorting a Hash; Deleting and Clearing a Hash; Replacing a Hash; Converting Hashes to Other Classes; 1.9 and Beyond; Other Hash Methods; Review Questions; 8. Working with Files; The Directory Stream; Creating a New File; Opening an Existing File; Opening a URI; Deleting and Renaming Files; File Inquiries; Changing File Modes and Owner; The IO Class; Review Questions; 9. Classes; Instance Variables; Accessors
- Class Variables
- Notes:
- Includes index.
- Includes bibliographical references and index.
- Description based on print version record.
- ISBN:
- 9780596516086
- 0596516088
- 9780596555320
- 0596555326
- OCLC:
- 609841118
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.