tags:

views:

119

answers:

3

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)

A: 

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

John Topley
A: 

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

ewakened
+7  A: 

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

CaffeineFueled