Computers & Technology
Home Computing
Business & Culture
Programming
Software
Web Development
Certification
Networking
Security & Encryption
Computer Science
Operating Systems
Microsoft
Hardware
Databases
Graphic Design
Apple
Digital Music
Digital Photography & Video
Games & Strategy Guides
Project Management
Mobile & Wireless Computing
Education & Reference
Encyclopedias
Test Preparation
Studying & Workbooks
Schools & Teaching
Writing, Research & Publishing Guides
Foreign Language Study & Reference
Atlases & Maps
Dictionaries & Thesauruses
Words, Language & Grammar
College & University
Trivia & Fun Facts
Consumer Guides
Business & Investing
Industries & Professions
Management & Leadership
Organizational Behavior
Personal Finance
Small Business & Entrepreneurship
Popular Economics
Marketing & Sales
Finance
Skills
Business Life
Economics
Job Hunting & Careers
Biography & History
Reference
International
Real Estate
Investing
Women & Business
Science & Math
Mathematics
Technology
Reference
Earth Sciences
Physics
Biological Sciences
Behavioral Sciences
Nature & Ecology
Astronomy & Space Science
History & Philosophy
Experiments, Instruments & Measurement
Agricultural Sciences
Table of content
Ruby Cookbook
Authors:
Carlson L.
,
Richardson L.
Published year:
Pages: 1/399
Buy this book on amazon.com >>
1
2
3
4
5
Recipe 5.5. Using an Array or Other Modifiable Object as a Hash Key
Recipe 5.6. Keeping Multiple Values for the Same Hash Key
Recipe 5.7. Iterating Over a Hash
Recipe 5.8. Iterating Over a Hash in Insertion Order
Recipe 5.9. Printing a Hash
Recipe 5.10. Inverting a Hash
Recipe 5.11. Choosing Randomly from a Weighted List
Recipe 5.12. Building a Histogram
Recipe 5.13. Remapping the Keys and Values of a Hash
Recipe 5.14. Extracting Portions of Hashes
Recipe 5.15. Searching a Hash with Regular Expressions
Chapter 6. Files and Directories
Recipe 6.1. Checking to See If a File Exists
Recipe 6.2. Checking Your Access to a File
Recipe 6.3. Changing the Permissions on a File
Recipe 6.4. Seeing When a File Was Last Used Problem
Recipe 6.5. Listing a Directory
Recipe 6.6. Reading the Contents of a File
Recipe 6.7. Writing to a File
Recipe 6.8. Writing to a Temporary File
Recipe 6.9. Picking a Random Line from a File
Recipe 6.10. Comparing Two Files
Recipe 6.11. Performing Random Access on
Recipe 6.12. Walking a Directory Tree
Recipe 6.13. Locking a File
Recipe 6.14. Backing Up to Versioned Filenames
Recipe 6.15. Pretending a String Is a File
Recipe 6.16. Redirecting Standard Input or Output
Recipe 6.17. Processing a Binary File
Recipe 6.18. Deleting a File
Recipe 6.19. Truncating a File
Recipe 6.20. Finding the Files You Want
Recipe 6.21. Finding and Changing the Current Working Directory
Chapter 7. Code Blocks and Iteration
Recipe 7.1. Creating and Invoking a Block
Recipe 7.2. Writing a Method That Accepts a Block
Recipe 7.3. Binding a Block Argument to a Variable
Recipe 7.4. Blocks as Closures: Using Outside Variables Within a Code Block
Recipe 7.5. Writing an Iterator Over a Data Structure
Recipe 7.6. Changing the Way an Object Iterates
Recipe 7.7. Writing Block Methods That Classify or Collect
Recipe 7.8. Stopping an Iteration
Recipe 7.9. Looping Through Multiple Iterables in Parallel
Recipe 7.10. Hiding Setup and Cleanup in a Block Method
Recipe 7.11. Coupling Systems Loosely with Callbacks
Chapter 8. Objects and Classes8
Recipe 8.1. Managing Instance Data
Recipe 8.2. Managing Class Data
Recipe 8.3. Checking Class or Module Membership
Recipe 8.4. Writing an Inherited Class
Recipe 8.5. Overloading Methods
Recipe 8.6. Validating and Modifying Attribute Values
Recipe 8.7. Defining a Virtual Attribute
Recipe 8.8. Delegating Method Calls to Another Object
Recipe 8.9. Converting and Coercing Objects to Different Types
Recipe 8.10. Getting a Human-Readable Printout of Any Object
Recipe 8.11. Accepting or Passing a Variable Number of Arguments
Recipe 8.12. Simulating Keyword Arguments
Recipe 8.13. Calling a Superclass s Method
Recipe 8.14. Creating an Abstract Method
Recipe 8.15. Freezing an Object to Prevent Changes
Recipe 8.16. Making a Copy of an Object
Recipe 8.17. Declaring Constants
Recipe 8.18. Implementing Class and Singleton Methods
Recipe 8.19. Controlling Access by Making Methods Private
Chapter 9. Modules and Namespaces
Recipe 9.1. Simulating Multiple Inheritance with Mixins
Recipe 9.2. Extending Specific Objects with Modules
Recipe 9.3. Mixing in Class Methods
Recipe 9.4. Implementing Enumerable: Write One Method, Get 22 Free
Recipe 9.5. Avoiding Naming Collisions with Namespaces
Recipe 9.6. Automatically Loading Libraries as Needed
Recipe 9.7. Including Namespaces
Recipe 9.8. Initializing Instance Variables Defined by a Module
Recipe 9.9. Automatically Initializing Mixed-In Modules
Chapter 10. Reflection and Metaprogramming
Recipe 10.1. Finding an Object s Class and Superclass
Recipe 10.2. Listing an Object s Methods
Recipe 10.3. Listing Methods Unique to an Object
Recipe 10.4. Getting a Reference to a Method
1
2
3
4
5
Ruby Cookbook
Authors:
Carlson L.
,
Richardson L.
Published year:
Pages: 1/399
Buy this book on amazon.com >>
Book categories
Computers & Technology
Home Computing
Internet
Online Searching (211)
Programming
Languages & Tools
Software Design, Testing & Engineering
Software Development (389)
Object-Oriented Design (173)
Web Development
Web Design
Programming (194)
Databases
Database Design (13)
Education & Reference