diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-04-12 10:35:45 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-04-12 10:35:45 +0000 |
commit | ac39a3b330cbf7c4b65ba907783364b63fb109b3 (patch) | |
tree | e773d062644ecad55fcd0d48e505a882b0f94a82 /ChangeLog | |
parent | bf03d9f2b695772212abee81d405483c5c374633 (diff) |
Module\#define_structure method: define a new Struct only if doesn't exist already or if the attribute list changed
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1,3 +1,12 @@ +2007-04-12 Giuseppe Bilotta <giuseppe.bilotta@gmail.com> + + * 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 <dmitry.kim@gmail.com> * 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 <giuseppe.bilotta@gmail.com> |