2 3 4
# File 'lib/seto/ext/string.rb', line 2 def sed(&block) Seto::Sed.new(self.each_line.with_index(1)).edit &block end