github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

duelinmarkers / metaprogramming_introduction

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 19
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

An article introducing Ruby metaprogramming fundamentals, in source code form. — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Add some philosophic babble about nature-vs-nurture 
duelinmarkers (author)
Thu Aug 21 23:47:44 -0700 2008
commit  ddc39c4c136a2fec96e6d7bad071fcb7fd14182d
tree    3db5314313d13f91cc12930765b77b374632dcc7
parent  eca9a3321e20727639f68ecaf03a8bfd84cc828e
metaprogramming_introduction /
name age
history
message
file README Fri Aug 15 19:21:05 -0700 2008 Reorder stuff in the README [duelinmarkers]
file metaprogramming_introduction.rb Thu Aug 21 23:47:44 -0700 2008 Add some philosophic babble about nature-vs-nur... [duelinmarkers]
README
A Ruby Metaprogramming Introduction is an article in Ruby source code form.

Read and run metaprogramming_introduction.rb. 

  ruby metaprogramming_introduction.rb

or if you want to make it output-heavy

  spec -f specdoc metaprogramming_introduction.rb

(The reading is the point. The running is only there to either reassure you
that what I tell you is true, or show you that it's not, in which case I hope
you'll let me know what version of Ruby you're running and other platformey
goodies.)

A version of this was originally published on the Practical Ruby blog. A while
back though I started updating it to be more useful and translating it to use
Rspec instead of the funny little Test::Unit extension (since Rspec reads just
as well but is more likely to be familiar to a reader).

Once it's all good and clever and readable I may put it out as a nicely
readable blog post again, but for now it'll just live here in Git. Chances are
it reads better in your editor of choice than on a web page anyway.

The originally published version can be viewed on GitHub at this URL:

http://github.com/duelinmarkers/metaprogramming_introduction/tree/9cd27dd8571b4428ef791ffa53646f4dd799b573




--------
Copyright John D. Hume 2008
Released under a Creative Commons Attribution-Share Alike 3.0 license
http://creativecommons.org/licenses/by-sa/3.0/
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server