lib/soap/property.rb in soap4r-ng-2.0.3 vs lib/soap/property.rb in soap4r-ng-2.0.4

- old
+ new

@@ -31,11 +31,13 @@ # aaa.bbb.ccc = ddd # aaa.bbb.eee.fff = ggg # aaa.hhh = iii # class Property - FrozenError = (RUBY_VERSION >= "1.9.0") ? RuntimeError : TypeError + unless defined?(FrozenError) # defined since 2.5 + FrozenError = (RUBY_VERSION >= "1.9.0") ? RuntimeError : TypeError + end include Enumerable module Util def const_from_name(fqname) @@ -325,6 +327,6 @@ str.gsub(/\\./u) { |c| eval("\"#{c}\"") } end end -end \ No newline at end of file +end