Show
Ignore:
Timestamp:
04/12/07 14:35:45 (3 years ago)
Author:
Giuseppe Bilotta <giuseppe.bilotta@…>
Children:
5f58c780eea198c68e8b9528c9c07cca0f401257
Parents:
bf03d9f2b695772212abee81d405483c5c374633
git-committer:
Giuseppe Bilotta <giuseppe.bilotta@gmail.com> 1176374145 +0000
Message:

Module\#define_structure method: define a new Struct only if doesn't exist already or if the attribute list changed

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ChangeLog

    ra4a5b3b rac39a3b  
     12007-04-12  Giuseppe Bilotta <giuseppe.bilotta@gmail.com> 
     2 
     3        * Basic class extensions: Module#define_structure() method. Syntax: 
     4                define_structure :SomeName, :attr_a, :attr_b 
     5        is equivalent to 
     6                SomeName = Struct.new("SomeName", :attr_a, :attr_b) 
     7        except that the new Struct is not created if it already exists and the 
     8        attributes list is the same. 
     9 
    1102007-03-31  Dmitry Kim <dmitry.kim@gmail.com> 
    211 
     
    1322        encodings support), please use get_partial() or get_request() instead. 
    1423        * Utils: http_get() method has been removed (long obsoleted by 
    15         HttpUtil) 
     24        HttpUtil) 
    1625        * different plugins: modified to accomodate for HttpUtil changes. 
    1726