diff options
Diffstat (limited to 'lib/wsdl/definitions.rb')
-rw-r--r-- | lib/wsdl/definitions.rb | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/lib/wsdl/definitions.rb b/lib/wsdl/definitions.rb index 7a0cff01e7..561a335744 100644 --- a/lib/wsdl/definitions.rb +++ b/lib/wsdl/definitions.rb @@ -1,20 +1,9 @@ -=begin -WSDL4R - WSDL definitions. -Copyright (C) 2002, 2003 NAKAMURA, Hiroshi. +# WSDL4R - WSDL definitions. +# Copyright (C) 2002, 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>. -This program is free software; you can redistribute it and/or modify it under -the terms of the GNU General Public License as published by the Free Software -Foundation; either version 2 of the License, or (at your option) any later -version. - -This program is distributed in the hope that it will be useful, but WITHOUT ANY -WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A -PRATICULAR PURPOSE. See the GNU General Public License for more details. - -You should have received a copy of the GNU General Public License along with -this program; if not, write to the Free Software Foundation, Inc., 675 Mass -Ave, Cambridge, MA 02139, USA. -=end +# This program is copyrighted free software by NAKAMURA, Hiroshi. You can +# redistribute it and/or modify it under the same terms of Ruby's license; +# either the dual license version in 2003, or any later version. require 'wsdl/info' @@ -53,6 +42,11 @@ class Definitions < Info @root = self end + def inspect + name = @name || '(unnamed)' + "#<#{self.class}:#{name}>" + end + def targetnamespace=(targetnamespace) @targetnamespace = targetnamespace if @name |