From: "Mauricio Fernández" Date: 2002-12-30T21:38:56+09:00 Subject: Re: FreeRIDE 0.5.0rc1: patch to allow per-user properties On Mon, Dec 30, 2002 at 09:35:23PM +0900, Mauricio Fern�ndez wrote: > > This is quite a hack, but it is transparent to the system and fixes the > issues I experienced. > > Comments? I am an idiot. > def self.load(base_slot, filespec) > + filespec2 = local_name(filespec) > + if File.exist?(filespec2) > + data = nil > + File.open(filespec2) {|file| file.binmode; data = file.read} > + read_slot(base_slot, YAML.load(data)) return > + end > return unless File.exist?(filespec) > data = nil > File.open(filespec) {|file| file.binmode; data = file.read} -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com Because I don't need to worry about finances I can ignore Microsoft and take over the (computing) world from the grassroots. -- Linus Torvalds