Class: IO

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

Instance Method Summary collapse

Instance Method Details

#sed(&block) ⇒ Object



4
5
6
# File 'lib/seto/ext/io.rb', line 4

def sed(&block)
  Seto::Sed.new(self.each.with_index(1)).edit &block
end