In Files
Methods
Information
Class Index
![show/hide quicksearch [+]](../assets/icon/find.png)
- Ratch
- Ratch::Batch
- Ratch::CLI
- Ratch::ConfigUtils
- Ratch::Console
- Ratch::EmailUtils
- Ratch::Emailer
- Ratch::FTPUtils
- Ratch::FileList
- Ratch::FileNotFound
- Ratch::Help
- Ratch::POMUtils
- Ratch::RDocUtils
- Ratch::Script
- Ratch::Shell
- Ratch::System
- Ratch::TarUtils
- Ratch::XDGUtils
- Ratch::ZlibUtils
- FileTest
- Hash
- NilClass
- Object
- String
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
Disabled; run with --debug to generate this.