Checking to see if a file is open (newbie)?

I’m almost embarassed to ask this, but does Ruby have any method (e.g.
File.open?) to check to see if a file is open? I see many methods in
File class, but nothing that addresses this directly. I googled it a
number of times and could not find a answer to this (dumb) question…

On Wed, Jul 30, 2008 at 6:21 PM, Thomas L.
[email protected] wrote:

I’m almost embarassed to ask this, but does Ruby have any method (e.g.
File.open?) to check to see if a file is open? I see many methods in
File class, but nothing that addresses this directly. I googled it a
number of times and could not find a answer to this (dumb) question…

File#closed?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs