Flowdock
method

match

Importance_0
v1_8_7_330 - Show latest stable - 0 notes - Class: Scanf::FormatSpecifier
match(str) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/scanf.rb, line 455
    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
Register or log in to add new notes.