Class: Notebroker::CLI::Commands::Convert

Inherits:
Dry::CLI::Command
  • Object
show all
Defined in:
lib/notebroker/cli.rb

Instance Method Summary collapse

Instance Method Details

#call(source:, destination: "./") ⇒ Object



25
26
27
28
29
30
# File 'lib/notebroker/cli.rb', line 25

def call(source:, destination: "./")
  File.write(
    destination + "converted.md",
    Notebroker.to_markdown(File.read(source))
  )
end