Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/seto/ext/string.rb

Instance Method Summary collapse

Instance Method Details

#sed(&block) ⇒ Object



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