From: Joseph Divelbiss Date: 2006-01-01T00:30:38+09:00 Subject: Re: Another Newb asks questions. Daniel Harple wrote: > Slight style suggestions -- > * The first conditional statement may be rewrote as: > script_data_dir = "#{$script_dir}data/" unless Dir["#{$script_dir} > data/"].last.nil? > * {} is equivalent to Hash.new > * Use { |x| ... } block syntax when the block has only one simple > statement (the each_slice part) Actually the first conditional will have elsifs once I get the code working, hence the reason for writing it that way. I intend to make it viable for unix platform for the same program aswell, in which case I will have to look elsewhere for the appropriate directory :( Thanks, Joseph -- Posted via http://www.ruby-forum.com/.