From 8952eabd62321c3db7b10126561c5c796fe85636 Mon Sep 17 00:00:00 2001 From: jj Date: Thu, 3 May 2012 03:33:50 +0200 Subject: [PATCH] ruby: typo --- plugins/ruby/ruby-memstruct.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ruby/ruby-memstruct.rb b/plugins/ruby/ruby-memstruct.rb index 5989050d6..82b158779 100644 --- a/plugins/ruby/ruby-memstruct.rb +++ b/plugins/ruby/ruby-memstruct.rb @@ -114,7 +114,7 @@ class Compound < MemStruct def _set(h) case h when Hash; h.each { |k, v| send("_#{k}=", v) } - when Array; names = _field_names ; raise 'bad size' if names.length != h.length ; names.zip(h).each { |n, a| send("#{n}=", a } + when Array; names = _field_names ; raise 'bad size' if names.length != h.length ; names.zip(h).each { |n, a| send("#{n}=", a) } when Compound; _field_names.each { |n| send("#{n}=", h.send(n)) } else raise 'wut?' end