Module: XDR::Concerns::ArrayConverter

Included in:
Array, VarArray
Defined in:
lib/xdr/concerns/array_converter.rb

Instance Method Summary collapse

Instance Method Details

#valid?(val) ⇒ Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/xdr/concerns/array_converter.rb', line 2

def valid?(val)
  val.is_a?(Array) && val.all? { |v| @child_type.valid?(v) }
end