mruby-numeric-ext: add call-seq documentation for Integer#integer? method

Added missing call-seq documentation for Integer#integer? method in
mrblib/numeric_ext.rb to complete documentation coverage:

- integer?: returns true for Integer objects, completing the integer?
  method documentation across both Numeric and Integer classes with
  consistent formatting and practical examples

Co-authored-by: Atlassian Rovo Dev
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-07-20 06:02:54 +09:00
parent fe4ed7e68d
commit 9c944e2a1f
@@ -110,6 +110,15 @@ class Integer
-div(-other)
end
##
# call-seq:
# int.integer? -> true
#
# Returns true since this is an Integer.
#
# 1.integer? #=> true
# 42.integer? #=> true
#
def integer?
true
end