/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. # This program is copyrighted free software by NAKAMURA, Hiroshi. You can
  4. # redistribute it and/or modify it under the same terms of Ruby's license;
  5. # either the dual license version in 2003, or any later version.
  6. module WSDL
  7. class Info
  8. attr_accessor :root
  9. attr_accessor :parent
  10. attr_accessor :id
  11. def initialize
  12. @root = nil
  13. @parent = nil
  14. @id = nil
  15. end
  16. def inspect
  17. if self.respond_to?(:name)
  18. sprintf("#<%s:0x%x %s>", self.class.name, __id__, self.name)
  19. else
  20. sprintf("#<%s:0x%x>", self.class.name, __id__)
  21. end
  22. end
  23. def parse_element(element); end # abstract
  24. def parse_attr(attr, value); end # abstract
  25. def parse_epilogue; end # abstract
  26. end
  27. end