Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
4Activity

Table Of Contents

INTERACTIVE RUBY AND THE RUBY ENVIRONMENT
Starting irb
Using irb
Expressions
Everything Is an Object
Integers, Fixnums, and Bignums
Addition, Concatenation, and Exceptions
Casting
Arrays
Booleans
Flow Control
Methods
Variables
Constants
Using the Ruby Interpreter and Environment
#1 Is It Payday? (check_payday.rb)
The Code
How It Works
The Results
#2 Random Signature Generator (random_sig.rb and random_sig-windows.rb)
Running the Script
Hacking the Script
#3 The 99 Bottles of Beer Song (99bottles.rb)
#4 Sound File Player (shuffle_play.rb)
Chapter Recap
PROGRAMMER UTILITIES
#5 What Is Truth? (boolean_golf.rb)
#6 Making a List (array_join.rb)
#7 Command-Line Interface (uses_cli.rb and simple_cli.rb)
#8 Palindromes (palindrome.rb and palindrome2.rb)
TEXT MANIPULATION
#9 End-of-Line Conversion (dos2unix.rb)
#10 Showing Line Numbers (line_num.rb)
#11 Wrapping Lines of Text (softwrap.rb)
#12 Counting Words in a File (word_count.rb)
#13 Word Histogram (most_common_words.rb)
#14 Rotating Characters in a String (rotate.rb)
NUMBER UTILITIES
#15 Computing Powers (power_of.rb)
#16 Adding Commas to Numbers (commify.rb)
Inheritance
Modules
#17 Roman Numerals (roman_numeral.rb)
#18 Currency Conversion, Basic (currency_converter1.rb)
#19 Currency Conversion, Advanced (currency_converter2.rb)
FUNCTIONALISM WITH BLOCKS AND PROCS
#20 Our First lambda (make_incrementer.rb)
#21 Using Procs for Filtering (matching_members.rb)
#22 Using Procs for Compounded Filtering (matching_compound_members.rb)
#23 Returning Procs as Values (return_proc.rb)
#24 Nesting lambdas
#25 Procs for Text (willow_and_anya.rb)
#26 Basic Factorials and Fibonaccis (factorial1.rb through fibonacci5.rb)
#27 Benchmarking and Profiling (tests/test_opts.rb)
Benchmarking
Profiling
#28 Converting Temperatures (temperature_converter.rb)
#29 Testing temperature_converter.rb (tests/ test_temp_converter.rb)
HTML AND XML TOOLS
#30 Cleaning Up HTML (html_tidy.rb)
#31 Counting Tags (xml_tag_counter.rb)
#32 Extracting Text from XML (xml_text_extractor.rb)
#33 Validating XML (xml_well_formedness_checker.rb)
MORE COMPLEX UTILITIES ANDTRICKS, PART I
#34 Finding Codes in the Bible or Moby-Dick (els_parser.rb)
#35 Mutating Strings into Weasels (methinks.rb)
#36 Mutating the Mutation of Strings into Weasels (methinks_meta.rb)
MORE COMPLEX UTILITIES AND TRICKS, PART II
#37 Overnight DJ (radio_player1.rb)
#38 Better Overnight DJ (radio_player2.rb)
#39 Numbers by Name (to_lang.rb)
#40 Elegant Maps and Injects (symbol.rb)
CGI AND THE WEB
Common Gateway Interface
Preparation and Installation
#41 A Simple CGI Script (simple_cgi.rb)
#42 Mod Ruby (mod_ruby_demo.rhtml and mod_ruby_demo.conf)
#43 CSS Stylesheets, Part I (stylesheet.rcss)
#44 CSS Stylesheets, Part II (stylesheet2.rcss)
RUBYGEMS AND RAILS PREPARATION
RubyGems
Installing RubyGems
Using RubyGems
The Structure of a Rails Application
A SIMPLE RAILS PROJECT
Creating the Application
Initial Creation
Preparing the Database
Adding Data
Creating the Model and Controllers
Dissecting the Application
Dissecting the Photo Model
Dissecting the Controllers
Dissecting the Helpers
Dissecting the Album Controller’s Views
Dissecting the Feed Controller’s images View
Dissecting the Album Controller’s Layout
Using CSS
Using the Application
Learning More About Rails
HOW DOES RUBY COMPARE TO OTHER LANGUAGES?
Haskell
Java
Lisp
Perl
Python
Smalltalk
Summary of Ruby vs. Other Languages
INDEX
0 of .
Results for:
No results containing your search query
P. 1
Ruby by Example - Concepts and Code

Ruby by Example - Concepts and Code

Ratings: (0)|Views: 65|Likes:

More info:

Published by: Zulsafuan Muhamat Suhimi on May 28, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

01/07/2013

pdf

text

original

You're Reading a Free Preview
Pages 7 to 117 are not shown in this preview.
You're Reading a Free Preview
Pages 124 to 201 are not shown in this preview.
You're Reading a Free Preview
Pages 208 to 250 are not shown in this preview.
You're Reading a Free Preview
Pages 257 to 269 are not shown in this preview.
You're Reading a Free Preview
Pages 276 to 309 are not shown in this preview.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->