We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0eca6c3 commit 9b60366Copy full SHA for 9b60366
ext/strscan/lib/strscan/strscan.rb
@@ -3,13 +3,13 @@
3
class StringScanner
4
# call-seq:
5
# scan_integer(base: 10)
6
- #
+ #
7
# If `base` isn't provided or is `10`, then it is equivalent to calling `#scan` with a `[+-]?\d+` pattern,
8
# and returns an Integer or nil.
9
#
10
# If `base` is `16`, then it is equivalent to calling `#scan` with a `[+-]?(0x)?[0-9a-fA-F]+` pattern,
11
12
13
# The scanned string must be encoded with an ASCII compatible encoding, otherwise
14
# Encoding::CompatibilityError will be raised.
15
def scan_integer(base: 10)
0 commit comments