Sha256: 8e264d6188c3702acd1e0f8ce05689c0d38f28720599b7e2e8344dd132269779
Contents?: true
Size: 822 Bytes
Versions: 12
Compression:
Stored size: 822 Bytes
Contents
o:$YARD::CodeObjects::MethodObject:@scope: instance:@visibility:public: @pathI"Complex#coerce:EF:@parameters[ :@files[[I"complex.c;T0:@current_file_has_commentsF: @name:coerce:@source_type:c: @tags[ :@docstringIC:YARD::Docstring":nodoc:;F:@objectIu:YARD::StubProxyComplex#coerce;F: @summary0:@ref_tags[ ;[ : @allI":nodoc:;F:@namespaceIu;Complex;F:@docstring_extra0:@sourceI"/* :nodoc: */ static VALUE nucomp_coerce(VALUE self, VALUE other) { if (k_numeric_p(other) && f_real_p(other)) return rb_assoc_new(f_complex_new_bang1(CLASS_OF(self), other), self); if (TYPE(other) == T_COMPLEX) return rb_assoc_new(other, self); rb_raise(rb_eTypeError, "%s can't be coerced into %s", rb_obj_classname(other), rb_obj_classname(self)); return Qnil; };F
Version data entries
12 entries across 12 versions & 2 rubygems