Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No close method #91

Closed
irashkin opened this issue Dec 15, 2013 · 3 comments
Closed

No close method #91

irashkin opened this issue Dec 15, 2013 · 3 comments

Comments

@irashkin
Copy link

Apologies, I'm still quite new to RoR, and maybe I'm missing something obvious to everyone else, but how do I close a Roo file once open? I've got spreadsheet = Roo::Spreadsheet.open(file_name) just fine, but I want to do either spreadsheet.close, or preferably, Roo::Spreadsheet.open(self.file_name) do |spreadsheet| ... end.
Is there a way to do this, or is it something missing? I ask because I'm running into problems deleting files after parsing them, and I'm pretty sure it's because they still are locked open by Roo.

@bwl21
Copy link

bwl21 commented Dec 17, 2013

I have the same issue. I want to read information from a readonly xls - file.

Roo cannot open such a file (in readonly mode). So I make a temporary copy and remove the write protection. But I don't find a way to remove the temporary spreadsheet, since it is still locked by ruby.

@stevendaniels
Copy link
Contributor

This issue seems to be related to #143

@stevendaniels
Copy link
Contributor

This issue has been resolved. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants