|
Revision 2000, 0.8 kB
(checked in by nahi, 1 year ago)
|
- removed backward compatibility definitions for soap4r-1.4.X. closes #445.
- removed SOAPlet#{app_scope_router,add_servant} -> use methods in HTTPServer instead.
- removed SOAP::WSDLDriver#generateEncodeType -> use SOAP::WSDLDriver#generate_explicit_type
- removed SOAP::SOAPGenerator -> use SOAP::Generator instead.
- removed compatibility method definitions for ruby-1.6.X.
- rpc/encoded service + detail element without xsi:type attribute caused NameError? since 1.5.6. (#435)
- extract attr_proxy definition. added soap/attrproxy.rb and wsdl/xmlSchema/ref.rb.
|
| Line | |
|---|
| 1 |
# SOAP4R - attribute proxy interface. |
|---|
| 2 |
# Copyright (C) 2000-2007 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 |
|
|---|
| 9 |
module SOAP |
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
module AttrProxy |
|---|
| 13 |
def self.included(klass) |
|---|
| 14 |
klass.extend(AttrProxyClassSupport) |
|---|
| 15 |
end |
|---|
| 16 |
|
|---|
| 17 |
module AttrProxyClassSupport |
|---|
| 18 |
def attr_proxy(symbol, assignable = false) |
|---|
| 19 |
name = symbol.to_s |
|---|
| 20 |
define_method(name) { |
|---|
| 21 |
attrproxy.__send__(name) |
|---|
| 22 |
} |
|---|
| 23 |
if assignable |
|---|
| 24 |
aname = name + '=' |
|---|
| 25 |
define_method(aname) { |rhs| |
|---|
| 26 |
attrproxy.__send__(aname, rhs) |
|---|
| 27 |
} |
|---|
| 28 |
end |
|---|
| 29 |
end |
|---|
| 30 |
end |
|---|
| 31 |
end |
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
end |
|---|