Question

I read that Ruby has a language featured called "labels", how does that work?

Update:

I saw it at http://ruby.about.com/od/gems/qt/shorturl.htm where the author talks about a label at the bottom of the article with:

puts ShortURL.shorten('http://ruby.about.com', :lns)

Was it helpful?

Solution

Think the author meant to say symbols. You can read about them here, and the docs

OTHER TIPS

I've just consulted my "Pickaxe" book and there's no such feature. Could it go by another name?

The Rails framework has labels but these are just helpers for the HTML label tag.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top