class Necromancer::ArrayConverters::ObjectToArrayConverter
An object that converts an object to an array
Public Instance Methods
call(value, strict: config.strict)
click to toggle source
Convert an object to an array
@example
converter.call({x: 1}) # => [[:x, 1]]
@api public
# File lib/necromancer/converters/array.rb, line 159 def call(value, strict: config.strict) Array(value) rescue StandardError strict ? raise_conversion_type(value) : value end