Sha256: a3828f80ab384ef0174612c780e90e06ab3e5b08eabf09a75a88362db191fb90

Contents?: true

Size: 1.37 KB

Versions: 12

Compression:

Stored size: 1.37 KB

Contents

o:$YARD::CodeObjects::MethodObject:
@name:div:@docstringIC:YARD::Docstring"…Performs division: the class of the resulting object depends on
the class of <code>numeric</code> and on the magnitude of the
result.
:@objectu:YARD::StubProxyFixnum#div:
@summary0:	@all"³Performs division: the class of the resulting object depends on
the class of <code>numeric</code> and on the magnitude of the
result.


@overload /(numeric)
@overload div(numeric):@ref_tags[:
@tags[o:YARD::Tags::OverloadTag
;
u;Fixnum#div;:/;IC;	"
;
u;Fixnum#div;0;
";[;[:@types0:@parameters[[:numeric0:
@text0:@signature"/(numeric):@tag_name"
overloado;
;
u;Fixnum#div;;;IC;	"
;
u;Fixnum#div;0;
";[;[;0;[[;0;0;"div(numeric);"
overload:@current_file_has_commentsF:@scope:
instance;[:@docstring_extra0:@files[["numeric.c0:@namespaceu;Fixnum:
@path"Fixnum#div;[:@visibility:public:@source"Ç/*
 * call-seq:
 *   fix / numeric      =>  numeric_result
 *   fix.div(numeric)   =>  numeric_result
 *
 * Performs division: the class of the resulting object depends on
 * the class of <code>numeric</code> and on the magnitude of the
 * result.
 */

static VALUE
fix_div(x, y)
    VALUE x, y;
{
    if (FIXNUM_P(y)) {
    long div;

    fixdivmod(FIX2LONG(x), FIX2LONG(y), &div, 0);
    return LONG2NUM(div);
    }
    return rb_num_coerce_bin(x, y);
}:@source_type:c

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
pry-doc-0.4.4 lib/pry-doc/core_docs_18/objects/Fixnum/div_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_18/objects/Fixnum/div_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_18/objects/Fixnum/div_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_18/objects/Fixnum/div_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_18/objects/Fixnum/div_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_18/objects/Fixnum/div_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_18/objects/Fixnum/div_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_18/objects/Fixnum/div_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_18/objects/Fixnum/div_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_18/objects/Fixnum/div_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_18/objects/Fixnum/div_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_18/objects/Fixnum/div_i.dat