Monserrat Foster
2013-Oct-21 15:35 UTC
What it exactly do these do ( RubyXL::Parser.parse and Roo::Excelx.new) when opening a file?
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? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/7a72622a-90c6-4a54-9875-83890ab440fd%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Joel Pearson
2013-Oct-21 15:52 UTC
Re: What it exactly do these do ( RubyXL::Parser.parse and Roo::Excelx.new) when opening a file?
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. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f9f506a02f2140ff892498b17be7fe45%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
Monserrat Foster
2013-Oct-21 15:59 UTC
Re: What it exactly do these do ( RubyXL::Parser.parse and Roo::Excelx.new) when opening a file?
I''m asking because I''m new to both ruby and rails and my knowledge is not enough to understand source code On Monday, October 21, 2013 11:22:28 AM UTC-4:30, Ruby-Forum.com User wrote:> > 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. > > -- > Posted via http://www.ruby-forum.com/. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/688794e0-0bde-4ab6-9574-a351017c43f5%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Joel Pearson
2013-Oct-21 16:00 UTC
Re: What it exactly do these do ( RubyXL::Parser.parse and Roo::Excelx.new) when opening a file?
I haven''t examined Roo, but you can see RubyXL reading the file into memory here: https://github.com/gilt/rubyXL/blob/master/lib/rubyXL/parser.rb -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/73648684be81fed9fbdcda7d057158e0%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.