Class: RubyEdit::SourceFile
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
|