On last.fm: Taylor Swift photos and free music!
BNET Business Network:
BNET
TechRepublic
ZDNet

FREE Registration is required

Overview:


There may be no better way to learn how to program than by dissecting real, representative code samples. Accordingly, Ruby by Example analyzes a series of Ruby scripts, examining how the code works, explaining the concepts it illustrates, and showing how to modify it to suit your needs. In this chapter download, focus on learning some key functional programming techniques in Ruby. Chapter coverage includes:

  • Creating Procs with lambda
  • Using Procs as arguments to methods
  • Using blocks as arguments to methods, including your own new methods
  • Using Procs as first-class functions
  • The inspect method
  • Nesting lambdas within other lambdas
  • Proc.new
  • The yield method
Title: Ruby by Example: Concepts and Code
Author: Kevin C. Baird
Publisher: No Starch Press
Chapter 6: Functionalism with Blocks and Procs
ISBN: 1-59327-148-4; Copyright © 2007, No Starch Press. All rights reserved.
Used with permission from the publisher. Available from booksellers or direct from No Starch Press

(Is this item miscategorized? Does it need more tags? Let us know.)

Format:PDFSize:667 KB
Date:Jul 2007Version:1.0
License:copyright
System Req:Adobe Acrobat Reader 5.0 or later
advertisement

White Papers, Webcasts, and Resources

Featured Training Courses

SmartPlanet

  • Thought-provoking progressive ideas on diverse topics that intersect with technology, business, and life, and matter to the world at large. Visit SmartPlanet
  • More from IBM
  • Innovate your business' process model, play against the market, compete against others on our scoreboards and WIN! Try INNOV8 2.0: A BPM Simulator
  • Enabling Real-World Business Transformation through IBM Service Management Read the EMA Analyst Report
Click Here

Returning users: Log In Here!

Already registered on BNET, TechRepublic, or ZDNet? Simply log in.

Free Membership: Sign Up Now!

Sign up for a free membership today and get instant and unlimited access to one of the largest databases of white papers, webcasts, and casestudies anywhere. Your FREE membership allows you to:

  • Download an unlimited amount of content, including classic and current white papers, case studies, webcasts and more
  • Track content on your chosen topics of interest
  • Receive targeted email alerts when your favorite content is added
  • Save content for future reading
  • Receive our member newsletter

When you register to access this library, you allow us to share your information with companies that produce products or services featured in the library--so that such companies may contact you with information and offers regarding their products and services. This enables us to keep the library a free service. As a library registrant, you will receive a complimentary subscription to the ZDNet white paper newsletter and e-mail Must-Read News Alerts. You can unsubscribe from these at any time. By clicking the Sign up button, you indicate that you agree to our Terms and Conditions and have read and understand our Privacy Policy (updated).