Class: Md2key::CLI
- Inherits:
-
Thor
- Object
- Thor
- Md2key::CLI
- Defined in:
- lib/md2key/cli.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args) ⇒ Object (private)
Shorthand for ‘md2key convert`
13 14 15 16 |
# File 'lib/md2key/cli.rb', line 13 def method_missing(*args) return super(*args) if args.length > 1 default_task(args.first.to_s) end |
Instance Method Details
#convert(path) ⇒ Object
6 7 8 |
# File 'lib/md2key/cli.rb', line 6 def convert(path) Converter.convert_markdown(path) end |