Forum: Ruby on Rails What it exactly do these do ( RubyXL::Parser.parse and Roo::Excelx.new) when opening a file?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5a41028798f4e263c2d0692f5b1847ec?d=identicon&s=25 Monserrat Foster (Guest)
on 2013-10-21 17:36
(Received via mailing list)
Do they open a file and load it into memory?

I'm asking because it seems to take a long time opening a file but after
it
opens looping into the variable is REALLY fast, could someone explain me
or
tell me where can I find an explanaition on how this sort of things
work?
14b5582046b4e7b24ab69b7886a35868?d=identicon&s=25 Joel Pearson (virtuoso)
on 2013-10-21 17:52
Usually the simplest way to learn how a gem works internally is to go
and read the source code. This should be available in the gem files, on
a github repository, or in the documentation.
14b5582046b4e7b24ab69b7886a35868?d=identicon&s=25 Joel Pearson (virtuoso)
on 2013-10-21 18:00
I haven't examined Roo, but you can see RubyXL reading the file into
memory here:
https://github.com/gilt/rubyXL/blob/master/lib/rub...
5a41028798f4e263c2d0692f5b1847ec?d=identicon&s=25 Monserrat Foster (Guest)
on 2013-10-21 18:01
(Received via mailing list)
I'm asking because I'm new to both ruby and rails and my knowledge is
not
enough to understand source code
This topic is locked and can not be replied to.