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