* ext/bigdecimal/lib/bigdecimal/util.rb: [DOC] document top-level
classes from BigDecimal utils native extensions git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9893a38975
commit
f3a63c3175
@ -1,3 +1,8 @@
|
|||||||
|
Tue Jul 16 08:15:22 2013 Zachary Scott <e@zzak.io>
|
||||||
|
|
||||||
|
* ext/bigdecimal/lib/bigdecimal/util.rb: [DOC] document top-level
|
||||||
|
classes from BigDecimal utils native extensions
|
||||||
|
|
||||||
Tue Jul 16 03:23:03 2013 Zachary Scott <e@zzak.io>
|
Tue Jul 16 03:23:03 2013 Zachary Scott <e@zzak.io>
|
||||||
|
|
||||||
* numeric.c: [DOC] improve rdoc formatting for parameters and links
|
* numeric.c: [DOC] improve rdoc formatting for parameters and links
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# BigDecimal extends the native Integer class to provide the #to_d method.
|
||||||
|
#
|
||||||
|
# When you require the BigDecimal library in your application, this methodwill
|
||||||
|
# be available on Integer objects.
|
||||||
class Integer < Numeric
|
class Integer < Numeric
|
||||||
# call-seq:
|
# call-seq:
|
||||||
# int.to_d -> bigdecimal
|
# int.to_d -> bigdecimal
|
||||||
@ -15,6 +19,10 @@ class Integer < Numeric
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# BigDecimal extends the native Float class to provide the #to_d method.
|
||||||
|
#
|
||||||
|
# When you require BigDecimal in your application, this method will be
|
||||||
|
# available on Float objects.
|
||||||
class Float < Numeric
|
class Float < Numeric
|
||||||
# call-seq:
|
# call-seq:
|
||||||
# flt.to_d -> bigdecimal
|
# flt.to_d -> bigdecimal
|
||||||
@ -32,6 +40,10 @@ class Float < Numeric
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# BigDecimal extends the native String class to provide the #to_d method.
|
||||||
|
#
|
||||||
|
# When you require BigDecimal in your application, this method will be
|
||||||
|
# available on String objects.
|
||||||
class String
|
class String
|
||||||
# call-seq:
|
# call-seq:
|
||||||
# string.to_d -> bigdecimal
|
# string.to_d -> bigdecimal
|
||||||
@ -49,6 +61,11 @@ class String
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# BigDecimal extends the native Numeric class to provide the #to_digits and
|
||||||
|
# #to_d methods.
|
||||||
|
#
|
||||||
|
# When you require BigDecimal in your application, this method will be
|
||||||
|
# available on BigDecimal objects.
|
||||||
class BigDecimal < Numeric
|
class BigDecimal < Numeric
|
||||||
# call-seq:
|
# call-seq:
|
||||||
# a.to_digits -> string
|
# a.to_digits -> string
|
||||||
@ -81,6 +98,10 @@ class BigDecimal < Numeric
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# BigDecimal extends the native Rational class to provide the #to_d method.
|
||||||
|
#
|
||||||
|
# When you require BigDecimal in your application, this method will be
|
||||||
|
# available on Rational objects.
|
||||||
class Rational < Numeric
|
class Rational < Numeric
|
||||||
# call-seq:
|
# call-seq:
|
||||||
# r.to_d -> bigdecimal
|
# r.to_d -> bigdecimal
|
||||||
|
Loading…
x
Reference in New Issue
Block a user