Class: CLI
- Inherits:
-
Thor
show all
- Defined in:
- lib/markdown/cli.rb
Overview
Command Line User Interface
Class Method Summary
collapse
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *_args, &_block) ⇒ Object
27
28
29
|
# File 'lib/markdown/cli.rb', line 27
def method_missing(method, *_args, &_block)
link(method.to_s)
end
|
Class Method Details
.exit_on_failure? ⇒ Boolean
35
36
37
|
# File 'lib/markdown/cli.rb', line 35
def self.exit_on_failure?
true
end
|
Instance Method Details
#link(dirname) ⇒ Object
23
24
25
|
# File 'lib/markdown/cli.rb', line 23
def link(dirname)
Markdown.link(dirname, options)
end
|
#respond_to_missing?(_method_name) ⇒ Boolean
31
32
33
|
# File 'lib/markdown/cli.rb', line 31
def respond_to_missing?(_method_name)
true
end
|
#version ⇒ Object
13
14
15
16
|
# File 'lib/markdown/cli.rb', line 13
def version
puts "#{Version::NAME} version #{Version::VERSION}"
exit 0
end
|