Class: RubyEdit::SourceFile

Inherits:
Command
  • Object
show all
Defined in:
lib/ruby_edit/source_file.rb

Instance Method Summary collapse

Methods inherited from Command

#command, #cursor, #editor, #exec_exist?, #execute, #generator, #pager, #platform, #prompt, #screen, #which

Instance Method Details

#deleteObject



11
12
13
# File 'lib/ruby_edit/source_file.rb', line 11

def delete
  generator.remove_file(RubyEdit::SOURCE_FILE_LOCATION)
end

#populate(content) ⇒ Object



7
8
9
# File 'lib/ruby_edit/source_file.rb', line 7

def populate(content)
  generator.create_file(RubyEdit::SOURCE_FILE_LOCATION, content, force: true)
end