This is a thing:
def foo
puts "bar" + :bat.to_s
end
Ha hi Octavian. I was justing using this as a sample gist to see how code highlighting worked on gist.io and wanted to get a variety of syntax colors in the sample (:
ah cool! it does make a nice page. I'm also newly into ruby (and rails) and I just came across converting symbols to strings the other day, I really thought it would be more complicated so I assumed others might have experienced similar epiphanies :)
converting symbols to strings?