Search Results

Showing results 1 to 1 of 1
Search took 0.01 seconds.
Search: Posts Made By: Kevin_poison
Forum: Ruby Jul 23rd, 2009
Replies: 3
Views: 1,636
Posted By Kevin_poison
names starting with ":" are expressions that return a symbol object e.g.

Class Person
attr_reader :name, :age, :sex
end

me = Person.new("poison", "24", "male")


The construct :name is...
Showing results 1 to 1 of 1

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC