Gorillib::Factory::ConvertingFactory
# File lib/gorillib/factories.rb, line 395 def convert(obj) if obj.respond_to?(:to_ary) x_y = obj.to_ary mismatched!(obj, "expected tuple to be a pair") unless (x_y.length == 2) Complex(* x_y) else Complex(obj) end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.