Rails storing systemcall in variable?

Hi How can I save a system call in a variable?

I want to do something like that:

@info[0] = system "ruby -v".to_s

Source: New Questions

Leave a Reply