method

new

v1_9_2_180 - Show latest stable - Class: Scanf::FormatString
new(str)
public

No documentation available.

# File lib/scanf.rb, line 530
    def initialize(str)
      @specs = []
      @i = 1
      s = str.to_s
      return unless /\S/.match(s)
      @space = true if /\s\z/.match(s)
      @specs.replace s.scan(REGEX).map {|spec| FormatSpecifier.new(spec) }
    end