Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > ripperライブラリ > Ripperクラス > new

singleton method Ripper.new

new(src, filename = "(ripper)", lineno = 1)

Ripper オブジェクトを作成します。

第一引数 src には Ruby プログラム (文字列)、 第二引数 filename には src のファイル名、 第三引数 lineno には src の開始行番号を、それぞれ与えます。