Took me a while to figure this out and thought it might be useful.
Basically, you use a caret and hit enter twice. It goes like this:
% ruby -e ‘puts ARGV.inspect’ ‘line one^
More?
More? line two’
[“line one\nline two”]
Took me a while to figure this out and thought it might be useful.
Basically, you use a caret and hit enter twice. It goes like this:
% ruby -e ‘puts ARGV.inspect’ ‘line one^
More?
More? line two’
[“line one\nline two”]
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs