Class: Ecogem::Cli::Args
- Inherits:
-
Object
- Object
- Ecogem::Cli::Args
- Defined in:
- lib/ecogem/cli/args.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
Instance Method Summary collapse
- #bundler_args ⇒ Object
-
#initialize(argv) ⇒ Args
constructor
A new instance of Args.
- #options ⇒ Object
Constructor Details
#initialize(argv) ⇒ Args
Returns a new instance of Args.
6 7 8 9 |
# File 'lib/ecogem/cli/args.rb', line 6 def initialize(argv) @argv = argv.dup parse end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
4 5 6 |
# File 'lib/ecogem/cli/args.rb', line 4 def command @command end |
Instance Method Details
#bundler_args ⇒ Object
15 16 17 |
# File 'lib/ecogem/cli/args.rb', line 15 def bundler_args @argv end |
#options ⇒ Object
11 12 13 |
# File 'lib/ecogem/cli/args.rb', line 11 def ||= {} end |