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

#delete(**options) ⇒ Object



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

def delete(**options)
  generator.remove_file(RubyEdit::SOURCE_FILE_LOCATION, **options)
end

#populate(content, **options) ⇒ Object



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

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