matched?()
Instance Public methods
Returns true
iff the last match was successful.
1 2 3 4 5 | s = StringScanner. new ( 'test string' ) s.match?(/\w+/) # => 4 s.matched? # => true s.match?(/\d+/) # => nil s.matched? # => false |
Please login to continue.