sub(*args)
Instance Public methods
Return a pathname which is substituted by String#sub.
1 2 3 | path1 = Pathname. new ( '/usr/bin/perl' ) path1.sub( 'perl' , 'ruby' ) #=> #<Pathname:/usr/bin/ruby> |
Return a pathname which is substituted by String#sub.
1 2 3 | path1 = Pathname. new ( '/usr/bin/perl' ) path1.sub( 'perl' , 'ruby' ) #=> #<Pathname:/usr/bin/ruby> |
Designed by : w10schools
service@w10schools.com
Please login to continue.