From: Florian Weber Date: 2004-09-09T02:16:56+09:00 Subject: using a hash in eval hi! is there a better way to do this: options = <<-END_OF_OPTIONS #{options.inspect} END_OF_OPTIONS options.gsub!("\\\"", "'") module_eval <<-"end_eval", __FILE__, __LINE__ def foo some_method_which_expects_a_hash(#{options}) end end_eval i guess iterating over each key and value and writing it 'by hand' is the only way, right? thanks! ciao! flroian