Why does Ruby issue this warning?

C

Curt Hibbs

This line of code:

puts HTTP.get url("collection", MARK)

results in this warning message:

warning: parenthesize argument(s) for future version

Of course, heeding the warning and changing the code to:

puts HTTP.get(url("collection", MARK))

eliminates the message. But does anyone know why this is happening?

Curt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,056
Members
48,769
Latest member
Clifft

Latest Threads

Top