Module: ThreeScale::Backend::Extensions::Array

Defined in:
lib/3scale/backend/extensions/array.rb

Instance Method Summary collapse

Instance Method Details

#valid_encoding?Boolean

Returns:

  • (Boolean)


5
6
7
8
9
10
11
12
# File 'lib/3scale/backend/extensions/array.rb', line 5

def valid_encoding?
  self.each do |v|
    if v.is_a?(String) || v.is_a?(Array) || v.is_a?(Hash)
      return false unless v.valid_encoding?
    end
  end
  return true
end