From 0dfefe69374e668a6b720cf6aaaf330aaad69339 Mon Sep 17 00:00:00 2001 From: Casey Dahlin Date: Tue, 7 Oct 2008 12:44:27 -0400 Subject: Fix another missing inject argument Array#inject had no argument in State#params, again leading to problems when running against a single-element array. --- state.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/state.rb b/state.rb index db21952..fbe5566 100644 --- a/state.rb +++ b/state.rb @@ -133,7 +133,7 @@ class State # Parameters to this state def params @deps.map{ |x| x.params }.inject({}){ |x,y| x.merge y }.merge \ - @holds.map{ |x| x.params }.inject{ |x,y| x.merge y } + @holds.map{ |x| x.params }.inject({}){ |x,y| x.merge y } end # Set this state to untrue without running any falling edge code -- cgit