[#405180] How to translate the following sqlite3 insert statement into equivalent mysql insert statement — "Yu W." <lists@...>
sqlite3 insert statement:
[#405195] Is it possible to use OptionParser with short options such as -oo? — "Shareef J." <lists@...>
Hi there,
[#405201] Why class returns `null` but the definition not when their description ended in IRB? — "Kumar R." <lists@...>
The below class description returns its last evaluated expression :
Because that's how it is implemented.
[#405207] Does `self` and `scope(local)` operate parallels? — "Kumar R." <lists@...>
I am heavily confused with the topic when thinking `self` and `local
Just to help experts out there I am clearing my statement once again
"Kumar R.": "YAATSGFY"
Michel wrote in post #1099829:
Hey, I am repeatedly saying that not to do this on my thread. But you
[#405217] Sequel vs. RDBI vs. DBI — Jim Hranicky <jfh@...>
So it looks like RDBI hasn't been touched in a while and DBI
[#405222] How differs `Private` methods from `singleton methods`? — "Kumar R." <lists@...>
Can anyone help me to understand the difference between `private
[#405242] Confusion in instance method calls of super class from subclass — "Kumar R." <lists@...>
I was just playing to see the instance method calls from the subclass
YOU DID NOT READ WHAT I WAS WRITTEN:
Hans Mackowiak wrote in post #1099900:
Ryan Davis wrote in post #1099902:
Am 03.03.2013 11:06, schrieb Kumar R.:
[#405245] ruby 1.8.7 Accessing files with non-latin names — Bart Els <lists@...>
Hello Forum,
[#405250] Extending Ruby. Little help or guidance if you are willing! — Cliff Rosson <cliff.rosson@...>
Hi Folk,
Am Sun, 3 Mar 2013 10:31:25 +0900
Thanks Quintus. I'll get around to playing with this today.
Hi Cliff,
So I am slowly stumbling my way through this. I know I've got quite a bit
On Tue, 05 Mar 2013 06:25:50 +0100, Cliff Rosson <cliff.rosson@gmail.com> wrote:
I've tried to do some reading but some of this is a bit over my head.
Haven't been able to touch this in a week but I had a few minutes to look
On Sun, 10 Mar 2013 04:41:32 +0100, Cliff Rosson <cliff.rosson@gmail.com> wrote:
Got ya. So it doesn't really matter if I convert things to ID and compare
Rereading this, I suspect that you might have mis-analyzed the issue. I
On Tue, Mar 12, 2013 at 12:28 AM, Josh Cheek <josh.cheek@gmail.com> wrote:
On Tue, Mar 12, 2013 at 4:05 PM, tamouse mailing lists <
On Tue, Mar 12, 2013 at 4:35 PM, Josh Cheek <josh.cheek@gmail.com> wrote:
[#405271] Confusion with Ruby's "case/when" block statement — "Kumar R." <lists@...>
Ruby uses `===` operator on the `case/when` type execution style.Now It
Actually the below paragraph made me confused: from the link :
On Mon, Mar 4, 2013 at 6:41 PM, Kumar R. <lists@ruby-forum.com> wrote:
[#405297] Can't get If statement right — Kat VS <lists@...>
mainMenu = "Main Menu:
I was wondering if I should switch to a case statement.. But, I am way
[#405310] How `next` works in ruby with `unless` ? — "Kumar R." <lists@...>
The `next` statement is used to skip a part of the loop and continue
Learn what semicolons do in Ruby.
What Joel said.
Matthew Kerwin wrote in post #1100097:
People are so incredibly brash on this forum sometimes. Makes for a cold
What do you think the only possible order of execution would be? It's not
John W Higgins wrote in post #1100104:
Kumar R. wrote in post #1100105:
Am 05.03.2013 19:18, schrieb Kumar R.:
On Tue, Mar 5, 2013 at 7:23 PM, <sto.mar@web.de> wrote:
Robert Klemme wrote in post #1100233:
On Tue, Mar 5, 2013 at 7:38 PM, Hans Mackowiak <lists@ruby-forum.com> wrote:
[#405323] YourLanguageSucks — Kiswono Prayogo <kiswono@...>
Hi, i found this link.. https://wiki.theory.org/YourLanguageSucks
if only people with this much energy for complaining could channel it into
On Mon, Mar 4, 2013 at 7:39 PM, Kiswono Prayogo <kiswono@gmail.com> wrote:
On Tue, 05 Mar 2013 07:12:05 +0100, Josh Cheek <josh.cheek@gmail.com> wrote:
On Tue, Mar 5, 2013 at 8:57 AM, Bartosz Dziewoki <matma.rex@gmail.com> wrote:
[#405334] Inconsistent Array#slice behavior? — "Jack R." <lists@...>
Given x = [],
[#405371] ruby 1.9.3 rpms — Matt Lawrence <matt@...>
Is there a good source for ruby 1.9.3 rpms for CentOS 6? The base
[#405376] When can one call themselves a “Rubyist”? — Rafal Chmiel <lists@...>
I was wondering what that term even meant. Is it something to do with
I think a Rubyist is just anyone who writes in Ruby. Reading anything
I remember reading this on a blog somewhere, but the stages of rubyism was
[#405383] Use html appearance without any gem — Ebru Akagunduz <lists@...>
Hi, i provide html appearance with ruby-gtk-webkit gem. Can i provide
[#405400] Bignum-Fixnum-Numeric confusion — Pritam Dey <lists@...>
Hi,
From the doc: http://ruby-doc.org/core-1.9.3/Fixnum.html
[#405414] Persisting and loading objects trhough Marshal problem — "Damián M. González" <lists@...>
Hello people. Today I've found a bug in my source code, been around for
Good question. See, I marshal them in differents times. Because I don't
[#405426] Compare Zulu time — robert lengu <lists@...>
Hi
[#405427] Numbers and groups. — "Andrew l." <lists@...>
Hello everybody i am a new ruby user and i learn best by doing. so i am
[#405432] Coupling vs providing dependencies in Ruby — Tom Kos <lists@...>
I'm java programmer diving into Ruby language (not rails stuff). Looking
[#405436] Resolv class caching /etc/hosts entries — Timur Alperovich <timur.alperovich@...>
Hey guys,
[#405444] Question regarding automating some Outlook/IMAP and pdf parsing functions w/ ruby? — Ed Zimmerman <lists@...>
Hello,
In that case the 271st email in your inbox is an object which doesn't
Am 10.03.2013 19:17, schrieb Joel Pearson:
Am 10.03.2013 19:26, schrieb sto.mar@web.de:
[#405476] methods in subclasses — john rxjmo <lists@...>
Hi,
[#405477] Compiling Ruby 2.0, problem with OpenSSL — "Piotr P." <lists@...>
Trying to compile Ruby 2.0 from source, having problem with it, getting
Managed to solve the problem with compiling openssl like this:
[#405495] RubyExcel class. Useful? — Joel Pearson <lists@...>
I've managed to create a (relatively) stable data-processing class which
Aha! I have learned how to use Github.
Uh oh, I think I've backed myself into a corner...
[#405499] RbNaCl 1.0.0: Cryptography for Ruby that doesn't suck — Tony Arcieri <tony.arcieri@...>
I'm happy to announce the first public release of RbNaCl, a Ruby binding to
[#405512] Serif version 0.3.1 released — Adam Prescott <adam@...>
Serif is a file-based blogging engine with an optional admin interface
[#405534] Segmentation fault while compiling ruby 1.9.3p392 with OpenSSL 1.0.1e installed — "Piotr P." <lists@...>
I'm trying to have my Rails website running on my fresh installation of
Hi,
[#405538] type casting and connversion in ruby — "Kumar R." <lists@...>
In programming world type casting and type conversion has completely
[#405570] Confusion with block local variable declaration with block variable declaration within the pipe `|` — Love U Ruby <lists@...>
Why are we not allowed to create local variables or new object with
Your first example does not work for me in any version of Ruby. But this
[#405597] Confusion with empty block printing — Love U Ruby <lists@...>
When I typed the below in my IRB:
i mean the blocks you used in http://www.ruby-forum.com/topic/4411871
here I am making my confusions are more specific:
[#405608] Access values for JSON.parse response — Nicole Villette <lists@...>
Hello, Does anyone know who to get the values from a nested hash in
Nicole Villette wrote in post #1101133:
By the way, I corrected this on the forum but it's still wrong in
Joel Pearson wrote in post #1101386:
[#405626] Is it possible to run Tcl from Ruby? — "Ishaan B." <lists@...>
Is it possible to integrate Ruby with Tcl such that Tcl frontend and Tk
[#405630] Confusion with some Module methods. — Love U Ruby <lists@...>
Can anyone help me to understand how the below module methods works?
[#405634] no such file to load -- yaml (LoadError) — "Mitesh S." <lists@...>
Hello
[#405642] Confusion — Robert Klemme <shortcutter@...>
http://www.discogs.com/Electric-Light-Orchestra-The-Confusion-Last-Train-To-London/release/1229906
On Tue, Mar 12, 2013 at 8:48 AM, Robert Klemme
[#405647] Question about using an automated date stamp for an abbreviation in the SciTE Editor Abbreviations File — Harry Truax <htruax@...>
Hello,
On Tue, Mar 12, 2013 at 6:14 PM, Harry Truax <htruax@stf.com> wrote:
[#405656] Confusion with Strings — Love U Ruby <lists@...>
From the book I read a line about string :
@Scott.
Language problems here. Not worth getting worked up over imho.
Are you really saying that you don't understand the concept of one
[#405695] ideas on how to determine tag — Wayne Brissette <wbrisett@...>
I'm working on a script that examines a DITA XML file and tries to determine where we put conrefs (where content is being pulled from). I have most of the code working but I'm trying now to determine what type of element something comes from.
[#405719] Difference of Module#included and Module#extended and Module#prepended — Love U Ruby <lists@...>
Can anyone help me to understand the below 3 methods about their
[#405720] cannot get blocks working — Aashish Kiran <lists@...>
Hi,
[#405754] Singleton method — Love U Ruby <lists@...>
C:\>ruby -v
[#405762] Understanding Ruby Classes, Objects and Methods. — Kedar Mhaswade <lists@...>
Dear Rubyists,
On Wed, Mar 13, 2013 at 11:20 PM, Kedar Mhaswade <lists@ruby-forum.com> wrote:
Thanks, Robert!
On Thu, Mar 14, 2013 at 1:57 PM, Kedar Mhaswade <lists@ruby-forum.com> wrote:
>>> abc is an instance of String
On Thu, Mar 14, 2013 at 2:42 PM, Kedar Mhaswade <lists@ruby-forum.com> wrote:
Robert Klemme wrote in post #1101602:
On Thu, Mar 14, 2013 at 3:14 PM, Kedar Mhaswade <lists@ruby-forum.com> wrote:
[#405770] Tool Database — "Andrew l." <lists@...>
Hello everybody back again and still very confused, I need to know if
[#405804] No form name in page - Ruby Mechanize — Rochit Sen <lists@...>
Hi All,
[#405807] confusion with singleton method call — Love U Ruby <lists@...>
C:\>irb --simple-prompt
Can anyone help me here?
[#405820] Selenium. catching Body class value — "Mattias A." <lists@...>
I have a site where my script changes language on the site. To verify
[#405828] Retrieves the count for the list of entries - not working — "Syed H." <lists@...>
def get_entry_count(type)
[#405844] IO buffering problem — Andrew Wagner <wagner.andrew@...>
All,
Hi Andrew,
[#405854] RubyVM::InstructionSequence compiling and loading — Mike Owens <mikeowens@...>
I recently came across "An Amateur Smalltalk User's Observations on
[#405855] combine two regular expressions — Ken Paul <lists@...>
Hi there,
[#405869] control the concurrent thread numbers — Ken Paul <lists@...>
Hi,
On Sat, Mar 16, 2013 at 12:13 PM, Ken Paul <lists@ruby-forum.com> wrote:
"Jes炭s Gabriel y Gal叩n" wrote in post #1101925:
[#405883] Ruby-GNOME2 1.2.3 — Kouhei Sutou <kou@...>
Hi,
Testing on Windows 7, Ruiby 2.0.0
[#405884] Confusion with `nil` output from the method Symbol#<=> — Love U Ruby <lists@...>
Symbol#<=> ->
[#405893] Ruby-2.0.0-rc2 on Windows under Cygwin. Cannot run IRB, gem, rake, etc — Wins Lin <lists@...>
Hello.
[#405897] Re: confusion with singleton method call — "plugatariov@..." <plugatariov@...>
[#405907] forked child processes — Ken Paul <lists@...>
Hi,
[#405928] Copy-on-write — Ken Paul <lists@...>
Hi,
[#405931] Finding one's way with 'super' in define_method/alias_emthod — Marcin Rzeźnicki <marcin.rzeznicki@...>
Hi all!
On Mon, Mar 18, 2013 at 5:50 PM, Marcin Rze添nicki
Robert Klemme wrote in post #1102151:
On Mon, Mar 18, 2013 at 8:39 PM, Marcin R. <lists@ruby-forum.com> wrote:
Robert Klemme wrote in post #1102170:
On Tue, Mar 19, 2013 at 2:46 PM, Marcin R. <lists@ruby-forum.com> wrote:
Robert Klemme wrote in post #1102288:
On Thu, Mar 21, 2013 at 11:31 AM, Marcin R. <lists@ruby-forum.com> wrote:
Robert Klemme wrote in post #1102581:
[#405941] Multiple environments in a single process — Tim Mahoney <lists@...>
I'm using the Ruby C API to execute Ruby scripts, and I need each script
I believe this can be done. We can enclose all the VM state variables
[#405947] Cisco Ruby pexpect equivalent — Steve Jarvis <lists@...>
Hi All,
On Tue, Mar 19, 2013 at 1:14 AM, Steve Jarvis <lists@ruby-forum.com> wrote:
[#405948] Error in method call - need help to understand — Pritam Dey <lists@...>
I was trying to call a method as below:
[#405954] Algorithmic complexity — "Rotar D." <lists@...>
Hi,
[#405975] DCell 0.13.0: actor-based distributed objects for Ruby — Tony Arcieri <tony.arcieri@...>
DCell 0.13.0 is out!
[#405980] library sdl (cannot load such file) — Deniz Po <lists@...>
Why i have always:
Subject: library sdl (cannot load such file)
Hey, can you post more information? Do you have any file that is requiring
Subject: Re: library sdl (cannot load such file)
[#405986] Ruby tainting on primitives — "Nicolas V." <lists@...>
Hi there,
[#405987] Why was the object_id for true and nil changed in ruby2.0? — Bharadwaj Srigiriraju <lists@...>
irb(main):001:0> true.object_id
hm the forumtopic i linked was in english ...
Hans Mackowiak wrote in post #1102451:
your question was already answered at stackoverflow:
[#405991] Confusion with has object creation. — Love U Ruby <lists@...>
I know we create Hash object with Hash.new,it calls `initialize` method.
[#406007] Can't run sudo under ssh.exec! — Tim Ash <lists@...>
Hi,
[#406015] fixedpnt 0.0.1: Binary Fixed Point Calculations — Axel Friedrich <lists@...>
https://github.com/Axel2/fixedpnt.rb
On 03/20/2013 07:25 AM, Axel Friedrich wrote:
> A random api suggestion... consider using #[]= as an alias for #assign,
[#406039] Need to change loudness of a mp3 file using ruby script — chandan mallik <lists@...>
I need to change the loudness of a mp3 file using mp3gain.I am toatally
Subject: Need to change loudness of a mp3 file using ruby script
Carlo E. Prelz wrote in post #1102552:
Subject: Re: Need to change loudness of a mp3 file using ruby script
Thanks Carlo. BTW I found the solution and have successfully
[#406091] Differences between Ruby 1.9.2 and 1.9.3 — "Dusan D." <lists@...>
Hi,
[#406106] Replacement for webdriver-user-agent (use with watir-webdriver) — tamouse mailing lists <tamouse.lists@...>
I notice that the gem pointed to in the watir documentation that
[#406110] Need to parse a list of checkboxes - ruby mechanize — Rochit Sen <lists@...>
Hi All,
[#406118] Writing a game, trying to make dynamic loops — "Nick G." <lists@...>
Hey there,
[#406141] Confusion with Array#map — Love U Ruby <lists@...>
Hi could anyone help me how does the below concept helped to produce the
map iterates through the given array and collects the results with the a
[#406146] Choice of methods/implementation (was: Writing a game, trying to make dynamic loops) — tamouse mailing lists <tamouse.lists@...>
Since otherwise I'd be hijacking, I'm starting a new thread on this:
On Mon, Mar 25, 2013 at 7:55 PM, tamouse mailing lists
[#406155] Need help on Kernel#eval — Love U Ruby <lists@...>
From the link -> http://www.ruby-doc.org/core-2.0/Binding.html
[#406184] Nokogiri help parsing HTML — Paul Mena <lists@...>
I'm relatively new to Ruby (and therefore Nokogiri) and am trying to
[#406192] Need help on ARGF#skip — Pritam Dey <lists@...>
from the doc: http://www.ruby-doc.org/core-2.0/ARGF.html#method-i-skip
[#406217] Arbitrary end of a string by using Nullbyte's symbol (Ruby 1.9.3p194) — "Preth H." <lists@...>
A couple of days ago I was doing a dummy app using RoR 3.2.12 and ruby
On Wed, Mar 27, 2013 at 6:53 PM, Preth H. <lists@ruby-forum.com> wrote:
[#406225] undefined local variable or method 'math' — Don Pick <lists@...>
I am learning Ruby.
[#406251] Windows ruby.exe association with .rb — Regis d'Aubarede <lists@...>
Hello,
[#406252] Ruby 2.0 bytecode export / import — Andras Horvath <lists@...>
Hi Everyone!
[#406254] Find usb properties/details using ruby-dbus and udisk — sundar sundar <lists@...>
I am doing project in which i need to detect all available usb drives
[#406255] Confusion with setter method — Love U Ruby <lists@...>
C:\>irb --simple-prompt
[#406258] Translation Project — Jeremy Henderson <lists@...>
Hello all! This is my first post! I started learning Ruby about 3 weeks
Yes, I love how compressed it is. Like Regis' though, it can't handle
[#406259] Chris Pine Leap Year — "Phil H." <lists@...>
This one is stumping me because of all the variables needed. Only thing
[#406261] clear the STDIN — Love U Ruby <lists@...>
C:\>irb --simple-prompt
[#406291] Hash with default — Harry Kakueki <list.push@...>
I would like to make a hash like h2 with the default described by h in one
[#406301] Program with shuffle program — Vincent Stowbunenko <lists@...>
I am trying to make my own shuffle method instead of the build-in one.
[#406312] Nil or enter with no input — "Phil H." <lists@...>
How can I tell if someone has enter nothing in a gets prompt, they only
[#406316] Ruby Typing? — "John n/a" <lists@...>
Hi everyone. I'm very new to ruby development. I coming form .Net side
[#406332] reconsidered 0.9.2 Released — Jim Wise <jwise@...>
[#406368] Grasping methods like "to_s"? — "Rafal C." <lists@...>
Hi, I'm posting here to quickly ask you: how is one able to do something
On Sat, Mar 30, 2013 at 4:49 PM, Rafal C. <lists@ruby-forum.com> wrote:
Or perhaps just
On Sat, Mar 30, 2013 at 11:30 PM, Peter Hickman <
[#406375] Ruby Gotchas presentation slides — Dave Aronson <rubytalk2dave@...>
I recently made available the slides for a presentation I did
On Sat, Mar 30, 2013 at 6:55 PM, Dave Aronson <rubytalk2dave@davearonson.com
On Sun, Mar 31, 2013 at 2:36 AM, Josh Cheek <josh.cheek@gmail.com> wrote:
[#406378] installing ruby 2.0 -- no checksum error — 7stud -- <lists@...>
$ rvm install ruby-2.0.0-p0
[#406387] Private setters can be called by self, why not getters? — Josh Cheek <josh.cheek@...>
class Counter
You have to define setters and getters in ruby more carefully, when you
[#406389] uninitialized constant ActiveRecord (NameError) — jonathan kav <lists@...>
Hallo
[#406396] respond_to? vs include? — Edoardo Rossi <edd.rossi@...>
Hi everybody...
Your benchmark looks okay. I added a comment to your Gist about a fork
On Mon, Apr 1, 2013 at 12:07 AM, Adam Prescott <adam@aprescott.com> wrote:
Re: RubyExcel class. Useful?
On Sat, Mar 9, 2013 at 4:31 PM, Joel Pearson <lists@ruby-forum.com> wrote:
> Thanks for your input, Robert.
You're welcome!
> I did wonder whether I should convert the underlying dataset into an
> Array rather than using a Hash, since spreadsheets are "structured" and
> I find the easiest way to manipulate the structure is with Array
> methods.
It does not really matter what you do. You could even use a hybrid
approach where you start with an Array based storage and exchange it
with a Hash based storage once sparseness is too large (for your
particular measure of "too large"). If you follow the layered
approach (see at end) you could have two implementations of the plain
data store which have the exact same API but one uses a Hash
internally and the other on an Array...
> Enumerable seems to be Array-based as well, and I'm still
No, not at all. Enumerable is just a module which relies solely on
the existence of a method #each. It's as simple as
irb(main):001:0> class X
irb(main):002:1> def each; yield 1; self end
irb(main):003:1> include Enumerable
irb(main):004:1> end
=> X
irb(main):005:0> x = X.new
=> #<X:0x802ec310>
irb(main):006:0> x.to_a
=> [1]
irb(main):007:0> x.select {|n| n.odd?}
=> [1]
irb(main):008:0> x.select {|n| n.even?}
=> []
irb(main):009:0> x.find {|n| n > 0}
=> 1
Or a simplistic integer range:
irb(main):014:0> class IntRange
irb(main):015:1> include Enumerable
irb(main):016:1> def initialize(a, b)
irb(main):017:2> @low, @high = [Integer(a), Integer(b)].sort
irb(main):018:2> end
irb(main):019:1> def each
irb(main):020:2> n = @low
irb(main):021:2> while n < @high
irb(main):022:3> yield n
irb(main):023:3> n += 1
irb(main):024:3> end
irb(main):025:2> self
irb(main):026:2> end
irb(main):027:1> end
=> nil
irb(main):028:0> ir = IntRange.new 3, 8
=> #<IntRange:0x80280048 @low=3, @high=8>
irb(main):029:0> ir.to_a
=> [3, 4, 5, 6, 7]
irb(main):030:0> ir.each {|x| p x}
3
4
5
6
7
=> #<IntRange:0x80280048 @low=3, @high=8>
No Arrays around. :-)
> rather hazy on when to override methods like "map", or when to rely on
> the methods already available through "each".
You should normally not override Array methods. You generally
shouldn't inherit from Array either. Those core classes are best used
through delegation.
> Still, I've learned a lot about Hashes while writing this code, so even
> if I do abandon their use for the main data storage I'll still find good
> use for them elsewhere.
That's good! I am glad you see it that way. Others might view these
exercises as useless detours - but they underestimate the learning
effects which come from that. You certainly learned a lot more than
by placing questions for every detailed question that occurred to you
as a few other members of the community seem to have chosen to do
recently.
> My reasoning behind the prevalence of headers is simply that if you
> wanted data without headers you'd just use arrays rather than this
> class. One of the big things I find helpful with this is that code is
> much more readable if I can reference a header rather than an index.
Then I would at least make the number of header rows and header
columns a property of the individual instance - and not as a constant
in the implementation. Still, I believe that with introduction of the
concept of "headers" in this class you may make things too complex too
fast.
> I'm not sure what a test class or wrapper class is. I'll look them up.
A test class would be a class implementing unit tests. A wrapper
class simply wraps around your class RubyExcel in much the same way
that RubyExcel wraps a Hash. In other words: it presents a different
abstraction. It's a general approach in software engineering to
create several layers of abstractions which makes it easier to deal
with only few aspects on one layer. The ISO 7 layer model is a famous
representative of that approach.
http://www.technology-training.co.uk/understandingtheiso7layermodel_10.php
> I see your point about to_s. I suppose I should differentiate between
> using interpolation for multiple variables and to_s for single cases.
+1
> The +, -, and << methods are recent additions; mostly because I only
> just learned that you can define these. I'm sure there are multiple ways
> to write these;
I wrote about numeric operators in Ruby a while back:
http://blog.rubybestpractices.com/posts/rklemme/019-Complete_Numeric_Class.html
> my first attempt was very poor in performance... and my
> thinking was to avoid re-inventing the wheel by using the Array methods
> written by someone much smarter than me :)
... which is perfectly understandable and OK. In this case the
conversion to an Array based structure might burn a lot of memory
though.
> All in all, this still needs a lot of work to make it useful; but now
> that I have a better feel of what the weaknesses and strengths are, I
> hope to improve on this starting point and eventually build something
> genuinely useful to others as well as myself.
That's a good approach.
> I'd be particularly interested on the question of Array vs Hash for the
> internals. Hash is great because of the simplicity of addresses and its
> efficient way of coping with blank space, but Arrays can keep their
> "form" much more effectively and already support things like sorting,
> rows, and columns.
In the end it does not matter that much what you use internally for
representation. The important bit is to use the proper API to your
storage to allow for a consistent view of the model and easy of use.
For the moment I'd stick with Hash but it may make sense to use a
layered approach: split class RubyExcel into (at least) two where one
is only responsible for providing a consistent API to your data with
the minimal operations needed to make it work. Use that internally as
storage and put everything else like header handling, those
convenience methods mentioned or reading from file and writing to file
in the wrapper class. That way you get a clean separation of
concerns: you have a proper abstraction of the storage and you get a
second layer which adds all the whistles and bells you need to work
efficiently with it (like treading header rows and columns
differently).
Kind regards
robert
--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/