Flowdock
block_scanf(fstr,&b) 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 701
  def block_scanf(fstr,&b)
    fs = Scanf::FormatString.new(fstr)
    str = self.dup
    final = []
    begin
      current = str.scanf(fs)
      final.push(yield(current)) unless current.empty?
      str = fs.string_left
    end until current.empty? || str.empty?
    return final
  end
Register or log in to add new notes.