Book description
Ruby Phrasebook
Jason Clinton
Essential Code and Commands
Ruby Phrasebook gives you the code you need to quickly and effectively work with Ruby, one of the fastest-growing languages in the world thanks to popular new Ruby technologies like Ruby on Rails.
Concise and Accessible
Easy to carry and easy to use—lets you ditch all those bulky books for one portable pocket guide
Flexible and Functional
Packed with more than 100 customizable code snippets—so you can readily code functional Ruby in just about any situation
Jason Clinton uses Ruby daily in system administration and development for Advanced Clustering Technologies, a Linux Beowulf cluster integrator. He has been working in the computer industry for more than a decade and is actively involved in the Kansas City Ruby Users Group (KCRUG), serving as administrator of the group’s web site and mailing list.
Register your book at informit.com/register for convenient access to downloads, updates, and corrections as they become available.
Programming / Ruby
Table of contents
- Copyright
- About the Author
- Acknowledgments
- We Want to Hear from You!
- Reader Services
- Introduction
- 1. Converting Between Types
-
2. Working with Strings
- Searching Strings
- Searching Strings with Regular Expressions
- Replacing Substrings
- Replacing Substrings using SprintF
- Replacing Substrings using Regular Expressions
- Working with Unicode
- Sanitizing Input
- Working with Line Endings
- Processing Large Strings
- Comparing Strings
- Checksumming a String (MD5 or Otherwise)
- Encrypting a String
-
3. Working with Collections
- Slicing an Array
- Iterating over an Array
- Creating Enumerable Classes
- Sorting an Array
- Iterating over Nested Arrays
- Modifying All the Values in an Array
- Sorting Nested Arrays
- Building a Hash from a Config File
- Sorting a Hash by Key or Value
- Eliminating Duplicate Data from Arrays (Sets)
- Working with Nested Sets
- 4. Working with Objects
- 5. Working with Pipes
- 6. Working with Files
- 7. Manipulating Text
- 8. Ruby One-Liners
-
9. Processing XML
- Opening an XML File
- Accessing an Element (Node)
- Getting a List of Attributes
- Adding an Element
- Changing an Element’s Enclosed Text
- Deleting an Element
- Adding an Attribute
- Changing an Attribute
- Deleting an Attribute
- Escaping Characters for XML
- Transforming Using XSLT
- Validating Your XML
- A Simple RSS Parser
- 10. Rapid Applications Development with GUI Toolkits
- 11. Simple CGI Forms
- 12. Connecting to Databases
- 13. Working with Networking and Sockets
- 14. Working with Threads
- 15. Documenting Your Ruby
- 16. Working with Ruby Packages
Product information
- Title: Ruby Phrasebook
- Author(s):
- Release date: August 2008
- Publisher(s): Addison-Wesley Professional
- ISBN: None
You might also like
book
Ruby Quick Syntax Reference
Ruby Quick Syntax Reference is a condensed code and syntax reference to the Ruby scripting language. …
book
Service-Oriented Design with Ruby and Rails
The Complete Guide to Building Highly Scalable, Services-Based Rails Applications Ruby on Rails deployments are growing, …
article
Run Llama-2 Models Locally with llama.cpp
Llama is Meta’s answer to the growing demand for LLMs. Unlike its well-known technological relative, ChatGPT, …
book
Ruby by Example
There may be no better way to learn how to program than by dissecting real, representative …