Class: Runfile::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/runfile/runner.rb

Overview

Executes docopt.

Class Method Summary collapse

Class Method Details

.run(docopt, version: nil, argv: nil) {|args| ... } ⇒ Object

Yields:

  • (args)


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