Class: Runfile::Runner
- Inherits:
-
Object
- Object
- Runfile::Runner
- Defined in:
- lib/runfile/runner.rb
Overview
Executes docopt.
Class Method Summary collapse
Class Method Details
.run(docopt, version: nil, argv: nil) {|args| ... } ⇒ Object
5 6 7 8 9 |
# File 'lib/runfile/runner.rb', line 5 def run(docopt, version: nil, argv: nil) args = call_docopt docopt, argv: argv, version: version yield args if block_given? args end |