Class: Faccts::RustFileWriterFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/faccts/integration/factories/rust_file_writer_factory.rb

Instance Method Summary collapse

Instance Method Details

#get_file_writer_from_input(given_path) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/faccts/integration/factories/rust_file_writer_factory.rb', line 5

def get_file_writer_from_input(given_path)
  @given_path = given_path

  return RustMainFileWriter.new if no_given_path?

  RustSpecifiedFileWriter.new(given_path)
end