/tools/Ruby/lib/ruby/1.8/soap/rpc/rpc.rb

http://github.com/agross/netopenspace · Ruby · 25 lines · 12 code · 8 blank · 5 comment · 1 complexity · ffe65f0a9fe7b5871368148490187c43 MD5 · raw file

  1. # SOAP4R - RPC utility.
  2. # Copyright (C) 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 SOAP
  7. module RPC
  8. ServerException = Mapping::MappedException
  9. def self.defined_methods(obj)
  10. if obj.is_a?(Module)
  11. obj.methods - Module.methods
  12. else
  13. obj.methods - Object.instance_methods(true)
  14. end
  15. end
  16. end
  17. end