This post originated from an RSS feed registered with Ruby Buzz
by Gregory Brown.
Original Post: Patches to make DataSet shiny
Feed Title: Ruby Reports Blog
Feed URL: http://www.cwinters.com/blog/index.rss
Feed Description: News and Updates regarding the Ruby Reports library and toolset.
Dudley is kicking ass today! Two Three new patches commited to SVN
1
Here's a patch that changes the dataset constructor to
accept :content and :default keywords. Also, DataSet right now has
two different implementations of clone(). I'm pretty sure one of them
needs to go away.
-d
2
Here's a patch to allow DataSet#<< to do the right thing when
appending another DataSet, or a DataRow, or an array of DataRows. It
only works if the sets have the same fields. We should probably
figure out a coherent semantics for comparing DataSets and DataRows
so we can do set unions and intersections and stuff like that in a
way that makes sense, but I'm still not quite sure how that should
work. Oh, and there's a little DataSet#to_a in there that just calls
to_a on the set's @data, too.
-d
3
Okay, this is the last one for today (I think :-) ). It's an
implementation of the basic set operations (union, intersection, and
difference) for DataSets. It also adds + as an alias to concat for
smooshing two similar DataSets together.
-d