Class: Oncall::CLI
- Inherits:
-
Object
- Object
- Oncall::CLI
- Defined in:
- lib/oncall/cli.rb
Overview
Manage the processing of command line options
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(args, options = Oncall.options) ⇒ CLI
constructor
A new instance of CLI.
- #run ⇒ Object
Constructor Details
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
4 5 6 |
# File 'lib/oncall/cli.rb', line 4 def args @args end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/oncall/cli.rb', line 4 def @options end |
Class Method Details
.run(args) ⇒ Object
11 12 13 |
# File 'lib/oncall/cli.rb', line 11 def self.run(args) new(args).run end |