: new( str, dup = true )  ->  StringScanner
     StringScanner ֥Ȥޤstr ϥ
    ݤʸǤdup  true λʣǻȤޤޤ
    ξǤ StringScanner ݻʸfreeze ޤ

