Ratch  Ratch::CLI

[Validate]
Generated with Newfish 0.1.0

CLI

TODO: How best to support CLI interface?

Public Class Methods

extended(base) click to toggle source
    # File lib/ratch/utils/cli.rb, line 12
12:     def self.extended(base)
13:       require 'facets/argvector'
14:     end
included(base) click to toggle source
   # File lib/ratch/utils/cli.rb, line 7
7:     def self.included(base)
8:       require 'facets/argvector'
9:     end
new(*args) click to toggle source
    # File lib/ratch/utils/cli.rb, line 17
17:     def initialize(*args)
18:       argv = ArgVector.new(ARGV)
19: 
20:       @arguments, parameters = *argv.parameters
21: 
22:       args << {} unless Hash === args.last
23: 
24:       opts = args.last
25: 
26:       opts.merge!(parameters)
27: 
28:       super(*args)
29:     end

Public Instance Methods

arguments() click to toggle source
    # File lib/ratch/utils/cli.rb, line 32
32:     def arguments
33:       @arguments
34:     end

Disabled; run with --debug to generate this.