mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user