Class: Dotenv::CLI
- Inherits:
-
Object
- Object
- Dotenv::CLI
- Defined in:
- lib/dotenv/cli.rb
Overview
The CLI is a class responsible of handling all the command line interface logic.
Instance Attribute Summary collapse
-
#argv ⇒ Object
readonly
Returns the value of attribute argv.
-
#filenames ⇒ Object
readonly
Returns the value of attribute filenames.
Instance Method Summary collapse
-
#initialize(argv = []) ⇒ CLI
constructor
A new instance of CLI.
- #run ⇒ Object
Constructor Details
#initialize(argv = []) ⇒ CLI
Returns a new instance of CLI.
12 13 14 15 |
# File 'lib/dotenv/cli.rb', line 12 def initialize(argv = []) @argv = argv.dup @filenames = [] end |
Instance Attribute Details
#argv ⇒ Object (readonly)
Returns the value of attribute argv.
10 11 12 |
# File 'lib/dotenv/cli.rb', line 10 def argv @argv end |
#filenames ⇒ Object (readonly)
Returns the value of attribute filenames.
10 11 12 |
# File 'lib/dotenv/cli.rb', line 10 def filenames @filenames end |