summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-10-27 12:43:14 -0700
committerEric Wong <normalperson@yhbt.net>2010-10-27 12:43:14 -0700
commitc7feb7e10a937df2dc72f53aa6cc1ebda4c1cd3b (patch)
tree4f74d77f6c002c306f63abd113980618f35be8cb
parent514af94321ef0fab74894e517792c4a9709d76f5 (diff)
No point in using a Struct for (1.8) space-efficiency
if there's only one of them.
-rw-r--r--lib/unicorn/configurator.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/unicorn/configurator.rb b/lib/unicorn/configurator.rb
index ce886cf..4acf3c6 100644
--- a/lib/unicorn/configurator.rb
+++ b/lib/unicorn/configurator.rb
@@ -8,7 +8,9 @@ require 'logger'
 # example configuration files.  An example config file for use with
 # nginx is also available at
 # http://unicorn.bogomips.org/examples/nginx.conf
-class Unicorn::Configurator < Struct.new(:set, :config_file, :after_reload)
+class Unicorn::Configurator
+  attr_accessor :set, :config_file, :after_reload
+
   # :stopdoc:
   # used to stash stuff for deferred processing of cli options in
   # config.ru after "working_directory" is bound.  Do not rely on