From ac39a3b330cbf7c4b65ba907783364b63fb109b3 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 12 Apr 2007 10:35:45 +0000 Subject: Module\#define_structure method: define a new Struct only if doesn't exist already or if the attribute list changed --- ChangeLog | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index aaa5e2e2..06974239 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2007-04-12 Giuseppe Bilotta + + * Basic class extensions: Module#define_structure() method. Syntax: + define_structure :SomeName, :attr_a, :attr_b + is equivalent to + SomeName = Struct.new("SomeName", :attr_a, :attr_b) + except that the new Struct is not created if it already exists and the + attributes list is the same. + 2007-03-31 Dmitry Kim * HttpUtil: major rework. get_response() method now respects @@ -12,7 +21,7 @@ been removed (mostly because it won't play well with future HTTP encodings support), please use get_partial() or get_request() instead. * Utils: http_get() method has been removed (long obsoleted by - HttpUtil) + HttpUtil) * different plugins: modified to accomodate for HttpUtil changes. 2007-03-24 Giuseppe Bilotta -- cgit v1.2.3