Re: putting values in one lines

2012-11-06 Thread Robert Klemme
On Tue, Nov 6, 2012 at 11:21 PM, Ferdous ara wrote: > Hi, > Dont know how to explain this. > > example , i am doing this > > output=`cat #{file} | grep "updown" | grep "aenet" | awk '{print > $6}'` > puts output > > > So i get this > ae40.0 > ae30.0 > > But i want to output like ae40.0 ae30.

Re: How to merge two or more hashes in to one?

2012-11-06 Thread Robert Klemme
On Tue, Nov 6, 2012 at 5:29 PM, Jermaine O. wrote: > > The same thing can be achieved with Enumerable#inject, which is the > > generalization of this kind of "sum up the elements of a collection": > > Just what I need. Many thanks for this, works great. Appreciate it! > I'd rather use Set here s

Re: Support for multiple Inheritance by classes

2012-11-06 Thread Robert Klemme
On Mon, Nov 5, 2012 at 6:44 PM, Marc Heiler wrote: > There is one thing that is however not looked at much at > all in this discussion - less the distinction between > multiple inheritance vs. module mixins, and much more so > what the distinction class vs. module actually serves. > > Because I o