From 1812c15dbcc4f790068226d08d04267ef7a8076b Mon Sep 17 00:00:00 2001 From: fogus Date: Thu, 9 Sep 2010 14:41:53 -0400 Subject: [PATCH] Added more info to the README --- README.md | 2 ++ src/rforth.rb | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 09b1497..d10eebe 100644 --- a/README.md +++ b/README.md @@ -16,3 +16,5 @@ A simple Forth interpreter in Ruby (1.9). 2 sq . 4 + +This is based on a sweet hack by [Russ Olsen](http://jroller.com/rolsen/) presented to me in a [GoodReads comment](http://www.goodreads.com/review/show/120660311). diff --git a/src/rforth.rb b/src/rforth.rb index 4fbb619..cbf66cc 100644 --- a/src/rforth.rb +++ b/src/rforth.rb @@ -94,9 +94,7 @@ class RForth end @dictionary.word(name) do - blocks.each do |b| - b.call - end + blocks.each {|b| b.call} end end