![]() |
| ||
| Names starting with ":" What are names starting with the ":", are they variables, constants or something else? drjay |
| ||
| Re: Names starting with ":" Quote:
% irb --simple-prompt Then look it up in the docs: http://www.ruby-doc.org/core/classes/Symbol.html |
| ||
| Re: Names starting with ":" They are called 'symbols' in Ruby. |
| ||
| Re: Names starting with ":" names starting with ":" are expressions that return a symbol object e.g. Class Person The construct :name is an expression that returns a symbol corresponding to name. |
| All times are GMT -4. The time now is 2:34 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC