Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Changeset 2037

Show
Ignore:
Timestamp:
05/27/09 16:13:12 (1 year ago)
Author:
nahi
Message:
  • let generated class constructor invoke block if given. closes #508.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1_5/lib/wsdl/soap/classDefCreator.rb

    r2035 r2037  
    231231    end 
    232232    c.def_method('initialize', '*arg') do 
    233       "super\n" + init_lines.join("\n") 
     233      "super\n" + init_lines.join("\n") + "\nyield(self) if block_given?" 
    234234    end 
    235235    c 
     
    281281    end 
    282282    c.def_method('initialize', *init_params) do 
    283       init_lines.join("\n") 
     283      init_lines.join("\n") + "\nyield(self) if block_given?" 
    284284    end 
    285285    c 
  • branches/1_5/test/wsdl/anonymous/expectedClassDef.rb

    r2035 r2037  
    1111  def initialize(header3 = nil) 
    1212    @header3 = header3 
     13    yield(self) if block_given? 
    1314  end 
    1415end 
     
    2728      @key = key 
    2829      @value = value 
     30      yield(self) if block_given? 
    2931    end 
    3032  end 
     
    4345    def initialize(sessionID = nil) 
    4446      @sessionID = sessionID 
     47      yield(self) if block_given? 
    4548    end 
    4649  end 
     
    5053  def initialize(loginResult = nil) 
    5154    @loginResult = loginResult 
     55    yield(self) if block_given? 
    5256  end 
    5357end 
     
    6569    def initialize(header1 = nil) 
    6670      @header1 = header1 
     71      yield(self) if block_given? 
    6772    end 
    6873  end 
     
    7277  def initialize(header = nil) 
    7378    @header = header 
     79    yield(self) if block_given? 
    7480  end 
    7581end 
     
    8793    def initialize(header2 = nil) 
    8894      @header2 = header2 
     95      yield(self) if block_given? 
    8996    end 
    9097  end 
     
    94101  def initialize(header = nil) 
    95102    @header = header 
     103    yield(self) if block_given? 
    96104  end 
    97105end 
     
    115123      @password = password 
    116124      @timezone = timezone 
     125      yield(self) if block_given? 
    117126    end 
    118127  end 
     
    122131  def initialize(loginRequest = nil) 
    123132    @loginRequest = loginRequest 
     133    yield(self) if block_given? 
    124134  end 
    125135end 
  • branches/1_5/test/wsdl/any/expectedEcho.rb

    r2030 r2037  
    2020    @__xmlele_any = nil 
    2121    @after = after 
     22    yield(self) if block_given? 
    2223  end 
    2324end 
     
    4243  def initialize 
    4344    @__xmlattr = {} 
     45    yield(self) if block_given? 
    4446  end 
    4547end 
     
    6264    def initialize 
    6365      @__xmlele_any = nil 
     66      yield(self) if block_given? 
    6467    end 
    6568  end 
     
    7376    @data = data 
    7477    @participantToken = participantToken 
     78    yield(self) if block_given? 
    7579  end 
    7680end 
  • branches/1_5/test/wsdl/choice/expectedClassdef.rb

    r2035 r2037  
    3434    @c1 = c1 
    3535    @c2 = c2 
     36    yield(self) if block_given? 
    3637  end 
    3738end 
     
    5152    @b1 = b1 
    5253    @b2 = b2 
     54    yield(self) if block_given? 
    5355  end 
    5456end 
     
    6466    @imei = imei 
    6567    @devId = devId 
     68    yield(self) if block_given? 
    6669  end 
    6770end 
     
    7477  def initialize(terminalID = nil) 
    7578    @terminalID = terminalID 
     79    yield(self) if block_given? 
    7680  end 
    7781end 
     
    8488  def initialize(terminalID = nil) 
    8589    @terminalID = terminalID 
     90    yield(self) if block_given? 
    8691  end 
    8792end 
     
    9499  def initialize(data = nil) 
    95100    @data = data 
     101    yield(self) if block_given? 
    96102  end 
    97103end 
     
    104110  def initialize(data = nil) 
    105111    @data = data 
     112    yield(self) if block_given? 
    106113  end 
    107114end 
     
    114121  def initialize(data = nil) 
    115122    @data = data 
     123    yield(self) if block_given? 
    116124  end 
    117125end 
  • branches/1_5/test/wsdl/group/expectedClassdef.rb

    r2035 r2037  
    5353    @var = var 
    5454    @__xmlattr = {} 
     55    yield(self) if block_given? 
    5556  end 
    5657end 
     
    6970    @comment = comment 
    7071    @__xmlele_any = nil 
     72    yield(self) if block_given? 
    7173  end 
    7274end 
  • branches/1_5/test/wsdl/marshal/person_org.rb

    r1891 r2037  
    2020    @var2 = var2 
    2121    @var3 = var3 
     22    yield(self) if block_given? 
    2223  end 
    2324end 
  • branches/1_5/test/wsdl/raa/expectedClassDef.rb

    r1934 r2037  
    1414    @major = major 
    1515    @minor = minor 
     16    yield(self) if block_given? 
    1617  end 
    1718end 
     
    4849    @license = license 
    4950    @description = description 
     51    yield(self) if block_given? 
    5052  end 
    5153end 
     
    6466    @email = email 
    6567    @name = name 
     68    yield(self) if block_given? 
    6669  end 
    6770end 
     
    8689    @created = created 
    8790    @updated = updated 
     91    yield(self) if block_given? 
    8892  end 
    8993end 
  • branches/1_5/test/wsdl/ref/expectedProduct.rb

    r2035 r2037  
    1414    @name = name 
    1515    @rating = rating 
     16    yield(self) if block_given? 
    1617  end 
    1718end 
     
    3738    super 
    3839    @__xmlattr = {} 
     40    yield(self) if block_given? 
    3941  end 
    4042end 
     
    6062    super 
    6163    @__xmlattr = {} 
     64    yield(self) if block_given? 
    6265  end 
    6366end 
     
    8386    super 
    8487    @__xmlattr = {} 
     88    yield(self) if block_given? 
    8589  end 
    8690end 
     
    122126    @varFloatExt = varFloatExt 
    123127    @__xmlattr = {} 
     128    yield(self) if block_given? 
    124129  end 
    125130end 
     
    165170      super 
    166171      @__xmlattr = {} 
     172      yield(self) if block_given? 
    167173    end 
    168174  end 
     
    208214    @v___point = v___point 
    209215    @__xmlattr = {} 
     216    yield(self) if block_given? 
    210217  end 
    211218end 
     
    231238    super 
    232239    @__xmlattr = {} 
     240    yield(self) if block_given? 
    233241  end 
    234242end 
  • branches/1_5/test/wsdl/simpletype/rpc/expectedEchoVersion.rb

    r1995 r2037  
    1111    @version = version 
    1212    @msg = msg 
     13    yield(self) if block_given? 
    1314  end 
    1415end 
  • branches/1_5/test/wsdl/soap/wsdl2ruby/expectedClassdef.rb

    r1995 r2037  
    1111    @version = version 
    1212    @msg = msg 
     13    yield(self) if block_given? 
    1314  end 
    1415end 
  • branches/1_5/test/wsdl/soap/wsdl2ruby/section/expectedClassdef.rb

    r1891 r2037  
    88  def initialize(something = nil) 
    99    @something = something 
     10    yield(self) if block_given? 
    1011  end 
    1112end 
     
    3031    @index = index 
    3132    @firstQuestion = firstQuestion 
     33    yield(self) if block_given? 
    3234  end 
    3335end 
  • branches/1_5/test/wsdl/soap/wsdl2ruby/test_wsdl2ruby.rb

    r2022 r2037  
    7272    @version = version 
    7373    @msg = msg 
     74    yield(self) if block_given? 
    7475  end 
    7576end 
  • branches/1_5/test/xsd/xsd2ruby/expected_mysample.rb

    r1934 r2037  
    1111  def initialize(something = nil) 
    1212    @something = something 
     13    yield(self) if block_given? 
    1314  end 
    1415end 
     
    3334    @index = index 
    3435    @firstQuestion = firstQuestion 
     36    yield(self) if block_given? 
    3537  end 
    3638end 
     
    5961    @index = index 
    6062    @firstQuestion = firstQuestion 
     63    yield(self) if block_given? 
    6164  end 
    6265end