Ruby5

Question

ADDQUESTION

Solution

#!/opt/twitter/rvm/rubies/ruby-1.9.3-p194/bin/ruby

puts :'I love Ruby!'
puts :'I love Ruby!.'.to_i

# ruby5.rb:4:in `<main>': undefined method `to_i' for :"I love Ruby!.":Symbol (NoMethodError)
#
Run this
Comments by Disqus