Module: NDAV::Converter

Defined in:
lib/ndav/converter.rb

Class Method Summary collapse

Class Method Details

.NDAV(array) ⇒ Object



51
52
53
54
55
56
57
58
59
# File 'lib/ndav/converter.rb', line 51

def NDAV(array, *, **)
  if array.kind_of? ::NDAV
    array
  elsif array.respond_to?(:to_ndav)
    array.to_ndav(*, **)
  else
    ::NDAV.new(array, *, **)
  end
end