The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: comp.lang.ruby
From: 7stud -- <bbxx789_0...@yahoo.com>
Date: Sun, 11 May 2008 16:18:06 -0500
Local: Sun, May 11 2008 5:18 pm
Subject: Re: Container wont contain! (noob question)
Extreme Noob wrote: Look at this class: > Wow, didn't know about that =() function. Thanks for the help class Dog def name=(a_name) def name d = Dog.new("Spot") d.name = "Rover" The Dog class above is equivalent to: class Dog def initialize(name) end In other words, the line: attr_accessor :name creates the methods "name=" and "name" for you. You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||