From: "Mauricio Fernández" Date: 2003-05-20T01:23:39+09:00 Subject: Re: public/protected/private syntax On Tue, May 20, 2003 at 01:04:36AM +0900, Robert Klemme wrote: > And even (Java style): > > class Foo > public def meth1 ... > public def meth2 ... > private def meth3 ... > private def meth4 ... > protected def meth5 ... > protected def meth6 ... > end > > :-) ??? >> class Foo >> private def meth1 >> end >> end SyntaxError: compile error (irb):3: void value expression from (irb):4 irb's output matches my expectations :) -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com How should I know if it works? That's what beta testers are for. I only coded it. -- Attributed to Linus Torvalds, somewhere in a posting