Class: Notebroker::CLI::Commands::Convert
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- Notebroker::CLI::Commands::Convert
- 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 |