[ruby] added prompt script + improved multiline search