method
match
ruby latest stable - Class:
Scanf::FormatSpecifier
match(str)public
No documentation available.
# File lib/scanf.rb, line 471
def match(str)
@matched = false
s = str.dup
s.sub!(/\A\s+/,'') unless count_space?
res = to_re.match(s)
if res
@conversion = send(@handler, res[1])
@matched_string = @conversion.to_s
@matched = true
end
res
end