PageRenderTime 113ms CodeModel.GetById 107ms app.highlight 4ms RepoModel.GetById 0ms app.codeStats 1ms

/tools/Ruby/lib/ruby/1.8/wsdl/types.rb

http://github.com/agross/netopenspace
Ruby | 43 lines | 26 code | 12 blank | 5 comment | 0 complexity | 85380882ad79e8d02d6260df85825189 MD5 | raw file
 1# WSDL4R - WSDL types definition.
 2# Copyright (C) 2002, 2003  NAKAMURA, Hiroshi <nahi@ruby-lang.org>.
 3
 4# This program is copyrighted free software by NAKAMURA, Hiroshi.  You can
 5# redistribute it and/or modify it under the same terms of Ruby's license;
 6# either the dual license version in 2003, or any later version.
 7
 8
 9require 'wsdl/info'
10
11
12module WSDL
13
14
15class Types < Info
16  attr_reader :schemas
17
18  def initialize
19    super
20    @schemas = []
21  end
22
23  def parse_element(element)
24    case element
25    when SchemaName
26      o = XMLSchema::Schema.new
27      @schemas << o
28      o
29    when DocumentationName
30      o = Documentation.new
31      o
32    else
33      nil
34    end
35  end
36
37  def parse_attr(attr, value)
38    nil
39  end
40end
41
42
43end