PageRenderTime 26ms CodeModel.GetById 20ms app.highlight 4ms RepoModel.GetById 0ms app.codeStats 0ms

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

http://github.com/agross/netopenspace
Ruby | 39 lines | 22 code | 12 blank | 5 comment | 1 complexity | bdc54b27a39417df8bd859e80f503a93 MD5 | raw file
 1# WSDL4R - WSDL information base.
 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
 9module WSDL
10
11
12class Info
13  attr_accessor :root
14  attr_accessor :parent
15  attr_accessor :id
16
17  def initialize
18    @root = nil
19    @parent = nil
20    @id = nil
21  end
22
23  def inspect
24    if self.respond_to?(:name)
25      sprintf("#<%s:0x%x %s>", self.class.name, __id__, self.name)
26    else
27      sprintf("#<%s:0x%x>", self.class.name, __id__)
28    end
29  end
30
31  def parse_element(element); end	# abstract
32  
33  def parse_attr(attr, value); end	# abstract
34
35  def parse_epilogue; end		# abstract
36end
37
38
39end