/** * Create a new instance of a rope. * * @param string $string * @param string|null $encoding * * @return Rope */ public static function rope($string, $encoding = null) { Arguments::define(Boa::string(), Boa::maybe(Boa::string()))->check($string, $encoding); return new Rope($string, $encoding); }