F
Florian Weber
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
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