[#1816] Ruby 1.5.3 under Tru64 (Alpha)? — Clemens Hintze <clemens.hintze@...>

Hi all,

17 messages 2000/03/14

[#1989] English Ruby/Gtk Tutorial? — schneik@...

18 messages 2000/03/17

[#2241] setter() for local variables — ts <decoux@...>

18 messages 2000/03/29

[ruby-talk:01916] Re: I'm stumped...!

From: Dave Thomas <Dave@...>
Date: 2000-03-16 17:43:33 UTC
List: ruby-talk #1916
"David Douthitt" <DDouthitt@cuna.com> writes:

> The note about "....or what the documentation calls a singleton method"
> helps.  Yet, why does the following snippet from the code WORK when
> the others fail?
> 
> ConfigFile.open(oratab).each_line { |line|
>    line.chomp!;
>    print line, "\n";
>    }

Because here you're bypassing your open method and using File's.

Dave

In This Thread

Prev Next