Method: Runfile::DocoptHelper#initialize
- Defined in:
- lib/runfile/docopt_helper.rb
#initialize(superspace, name, version, summary, actions, options, examples) ⇒ DocoptHelper
The constructor expects to get all the textual details needed to generate a docopt document (name, version, summary, options) and an array of Action objects. The superspace argument will be the name of runfile, in case we are running a named.runfile. It is only needed to generate the proper ‘run superspace (-h|–help|–version)` line
19 20 21 22 23 24 25 26 27 |
# File 'lib/runfile/docopt_helper.rb', line 19 def initialize(superspace, name, version, summary, actions, , examples) @superspace = superspace @name = name @version = version @summary = summary @actions = actions = @examples = examples end |