From: Brandon Weaver Date: 2012-11-21T22:01:02+09:00 Subject: Re: Metaprogramming --047d7b2e135b3e98ed04cf00f129 Content-Type: text/plain; charset=ISO-8859-1 Quit feeding the troll. Matz is nice, so we should be as well. Now then, you say getters and setters. I believe this puts you at a C like background. Look into attr_accessor, reader, and writer. This tutorial should prove invaluable: http://juixe.com/techknow/index.php/2007/01/22/ruby-class-tutorial/ Note that Ruby implicitly returns the last operation performed in a function. You can still explicitly call return if you want. Def name is the getter, Def name= is the setter. Again, read into attr, as it saves quite a bit of time. Best of luck mate, Lemur On Nov 21, 2012 2:27 AM, "Ryan Davis" wrote: > > On Nov 20, 2012, at 19:06, 7stud -- wrote: > > > Arlen Cuss wrote in post #1085299: > >> > >> This is not difficult to understand, particularly in the context of the > >> code examples given. > > > > Well, then why don't you rewrite the op's post so that English speakers > > can understand it, and then maybe we can get the op's questions > > answered? > > You are acting like a dick. Stop. If you can't contribute positively, stfu. > > > --047d7b2e135b3e98ed04cf00f129 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

Quit feeding the troll. Matz is nice, so we should be as well.

Now then, you say getters and setters. I believe this puts you at a C li= ke background.

Look into attr_accessor, reader, and writer.

This tutorial should prove invaluable: http://juixe.com/techknow/in= dex.php/2007/01/22/ruby-class-tutorial/

Note that Ruby implicitly returns the last operation performed in a func= tion. You can still explicitly call return if you want.

Def name is the getter, Def name=3D is the setter. Again, read into attr= , as it saves quite a bit of time.

Best of luck mate,

Lemur

On Nov 21, 2012 2:27 AM, "Ryan Davis" = <ryand-ruby@zenspider.com> wrote:

On Nov 20, 2012, at 19:06, 7stud -- <
lists@ruby-forum.com> wrote:

> Arlen Cuss wrote in post #1085299:
>>
>> This is not difficult to understand, particularly in the context o= f the
>> code examples given.
>
> Well, then why don't you rewrite the op's post so that English= speakers
> can understand it, and then maybe we can get the op's questions > answered?

You are acting like a dick. Stop. If you can't contribute positively, s= tfu.


--047d7b2e135b3e98ed04cf00f129--