Problem with executing negative numbers in Ruby language

Greetings,

 I am learning the basic of RUBY language and I noticed that when I write
           
           puts -1 # or any negative number

 atom doesn't execute it. I tried using another program and it works. Does anyone know what is going on? or do i have to use another method to use negative number?

Thank you