Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
Ruby-Nuby forum
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Zach Dennis, post: 4441346"] Yeah, I learned that the hard way ;), I am initializing d to nil just above it....but while we're on this topic I have another order of operations question.....It involves the && in a conditional statement d = nil dir = Dir.new( d ) if( $*.length > 0 && File.directory?( d=$*.shift ) ) I cannot get this statement to work either, and I have tried flip flopping the conditions around, but it always complains when I don't pass in a command line argument. If $* is an empty array shouldn't Ruby test the first condition and see that it is false, then quit and do not test the second condition? Thanks, Zach [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
Ruby-Nuby forum
Top