• Stars
    star
    109
  • Rank 319,077 (Top 7 %)
  • Language
    Ruby
  • Created about 13 years ago
  • Updated almost 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Source code from the book Eloquent Ruby
Eloquent Ruby Source Code
=========================

This is the source code from Russ Olsen's book Eloquent Ruby.
In this repo you will find all of the source code from the
book, organized by chapters.

The code has been updated and tested with Ruby 2.3.3p222.

Because the code here was written to be included in a book,
it is organized a little differently than the garden variety
Ruby project:

* The code for each chapter is in a directory whose name
corresponds to that chapter. Thus the code for Chapter 7
is in a directory named `07`.

* In each chapter directory you will find one or more *_spec.rb
files. These are rspec file (See Chapter 9) which drive execution
of the code. To run all of the examples, make your current directory
the very top of the repo and run `rake`. To run the code in an
individual directory, `cd` into that directory and run `rake`.
To run an individual spec file, `cd` to the appropriate directory
and run:

    rspec -I . <the file>


* Note that the `Rakefile`s run `rspec` over and over, once
for each spec file. This is generally *not* what you would
do in a normal Ruby project - normally you would run everything
in a directory in one swoop: `rspec .`. The thing is that many
of the examples from the book will construct a class and then
change it and then change it again. This is great for explaining
but means that you have to carefully isolate each example.

More Repositories

1

design_patterns_in_ruby_code

The code from Russ Olsen's book Design Patterns in Ruby (http://goo.gl/OKPQw)
Ruby
282
star
2

transit

Transit marshaling to and from Go programs.
Go
51
star
3

dejour

Easy to use clojure download
C
46
star
4

cloforth

A little Forth-like language implemented in Clojure
Clojure
21
star
5

sallyforth

Very experimental forth-like programming language written in python.
Python
17
star
6

ham_radio_question_pool

All of the current questions for the FCC amateur radio license exams in machine readable format.
Ruby
11
star
7

fake_smtp

A minimal, do-nothing SMTP server
Ruby
9
star
8

expletive

Ruby
8
star
9

notroff

A plain text to OpenOffice Write filter
Ruby
6
star
10

Transit.jl

Transit format support for the Julia programming language.
Julia
5
star
11

dpir_2014

Code and slides from my 2014 talk on Design Patterns in Ruby.
Ruby
4
star
12

arachne-hello-app

Simple arachne demo application that uses the arachne-framework/hello-module.
Clojure
3
star
13

dpir_tuesday

Code from my July 2012 talk to the Ottawa Ruby Tuesday meet up
Ruby
3
star
14

cr_fake_smtp

A dummy SMTP server in Crystal.
Crystal
2
star
15

crexpletive

This is the expletive code (https://github.com/russolsen/expletive) ported to Crystal (http://crystal-lang.org).
Crystal
2
star
16

md_inc

MdInc is a simple text inclusion filter intended for use with markdown and similar text formatting utilities.
Ruby
2
star
17

same

Very permissive equality checker for Go.
Go
1
star
18

qrn

QRN is a simple, Python based static site generator.
Python
1
star
19

arachne-app1

My first arachne app, borrowed from Luke's demo app.
Clojure
1
star
20

presentations

Material from my presentations
1
star
21

aapen

Experiments in making Clojure more accessible.
Python
1
star
22

crforth

This is the a simple forth interpreter (https://github.com/russolsen/rforth) , ported to Crystal (http://crystal-lang.org).
Crystal
1
star
23

experiment

Slides from my RubyNation 2011 talk: Eloquent Explanations
1
star
24

my-new-band-name

A running list of new band names.
1
star
25

books

Simple Rails app for learning.
Ruby
1
star
26

pompous

Pompous is an assembler for Python byte code, built as a learning exercise.
Python
1
star