Skip to content

Commit

Permalink
[DOC] Add missing documents
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Dec 6, 2023
1 parent ab4733d commit 845c02f
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion ext/bigdecimal/bigdecimal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1780,6 +1780,17 @@ BigDecimal_neg(VALUE self)
return VpCheckGetValue(c);
}

/*
* call-seq:
* a * b -> bigdecimal
*
* Multiply by the specified value.
*
* The result precision will be the precision of the sum of each precision.
*
* See BigDecimal#mult.
*/

static VALUE
BigDecimal_mult(VALUE self, VALUE r)
{
Expand Down Expand Up @@ -3257,10 +3268,11 @@ BigDecimal_initialize_copy(VALUE self, VALUE other)
return self;
}

/* :nodoc: */
static VALUE
BigDecimal_clone(VALUE self)
{
return self;
return self;
}

#ifdef HAVE_RB_OPTS_EXCEPTION_P
Expand Down Expand Up @@ -3758,6 +3770,12 @@ f_BigDecimal(int argc, VALUE *argv, VALUE self)
return rb_convert_to_BigDecimal(val, digs, exception);
}

/* call-seq:
* BigDecimal.interpret_loosely(string) -> bigdecimal
*
* Returns the +BigDecimal+ converted loosely from +string+.
*/

static VALUE
BigDecimal_s_interpret_loosely(VALUE klass, VALUE str)
{
Expand Down

0 comments on commit 845c02f

Please sign in to comment.