Changeset 1894
- Timestamp:
- 07/21/07 12:54:49 (1 year ago)
- Files:
-
- trunk/lib/soap/mapping/mapping.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/soap/mapping/mapping.rb
r1837 r1894 205 205 const = ::Object 206 206 name.sub(/\A::/, '').split('::').each do |const_str| 207 begin 208 if const.const_defined?(const_str) 209 const = const.const_get(const_str) 210 next 211 end 212 rescue NameError 213 if lenient 214 const_str = XSD::CodeGen::GenSupport.safeconstname(const_str) 207 if /\A[A-Z]/ =~ const_str 208 begin 215 209 if const.const_defined?(const_str) 216 210 const = const.const_get(const_str) 217 211 next 218 212 end 213 rescue NameError 214 end 215 end 216 if lenient 217 const_str = XSD::CodeGen::GenSupport.safeconstname(const_str) 218 if const.const_defined?(const_str) 219 const = const.const_get(const_str) 220 next 219 221 end 220 222 end