Class: Rmsgen::Cli::Main
- Inherits:
-
Object
- Object
- Rmsgen::Cli::Main
- Defined in:
- lib/rmsgen/cli/main.rb
Class Method Summary collapse
Instance Method Summary collapse
- #execute! ⇒ Object
-
#initialize(config, args) ⇒ Main
constructor
A new instance of Main.
Constructor Details
#initialize(config, args) ⇒ Main
Returns a new instance of Main.
10 11 12 13 14 |
# File 'lib/rmsgen/cli/main.rb', line 10 def initialize(config, args) @config = config @args = args File.open(config['email_dir']) if config && config['email_dir'] end |
Class Method Details
.execute(config, args) ⇒ Object
6 7 8 |
# File 'lib/rmsgen/cli/main.rb', line 6 def self.execute(config, args) new(config, args).execute! end |