Class: RubyEdit::Writer
Constant Summary collapse
- LINE_REGEX =
/^.*\d+./
Instance Method Summary collapse
Methods inherited from Command
#command, #cursor, #editor, #exec_exist?, #execute, #generator, #pager, #platform, #prompt, #screen, #which
Instance Method Details
#write ⇒ Object
11 12 13 14 15 |
# File 'lib/ruby_edit/writer.rb', line 11 def write File.open(RubyEdit::SOURCE_FILE_LOCATION, 'rb') do |file| file.each_line { |line| find_and_replace_line line } end end |