Module: XDR::Concerns::ArrayConverter
Instance Method Summary collapse
Instance Method Details
#valid?(val) ⇒ 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 |