lib/radius/utility.rb in radius-ts-1.1.0 vs lib/radius/utility.rb in radius-ts-1.3.0

- old
+ new

@@ -24,7 +24,17 @@ def self.camelize(underscored_string) string = '' underscored_string.split('_').each { |part| string << part.capitalize } string end + + if RUBY_VERSION[0,3] == '1.8' + def self.array_to_s(c) + c.to_s + end + else + def self.array_to_s(c) + c.map{|x| x.is_a?(Array) ? array_to_s(x) : x.to_s }.join + end + end end end \ No newline at end of file