Is it a bad idea to use class names in a hash?
eg
coll = [EcoCalendar,MarketForecast]
···
--
Posted via http://www.ruby-forum.com/.
Is it a bad idea to use class names in a hash?
eg
coll = [EcoCalendar,MarketForecast]
--
Posted via http://www.ruby-forum.com/.
Not per se, depends on what you are going to do with them. By the way,
that's not a hash, it's an array:
ruby-1.8.7-p334 :001 > [String,Time].class
=> Array
Can you give us more information?
Jesus.
On Thu, Mar 24, 2011 at 11:22 AM, Benjamin Fowl <b.fowl87@gmail.com> wrote:
Is it a bad idea to use class names in a hash?
eg
coll = [EcoCalendar,MarketForecast]
Hi,
Am 24.03.2011 11:22, schrieb Benjamin Fowl:
Is it a bad idea to use class names in a hash?
eg
coll = [EcoCalendar,MarketForecast]
generally speaking, there is no correct answer for that question. It depends on your context.
If it fits yours solution, it's absolutely ok.
Waldemar
Where's the Hash? Or did you mean [EcoCalendar,MarketForecast].hash ?
Cheers
robert
On Thu, Mar 24, 2011 at 11:22 AM, Benjamin Fowl <b.fowl87@gmail.com> wrote:
Is it a bad idea to use class names in a hash?
eg
coll = [EcoCalendar,MarketForecast]
--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/