Class: Mayl::Commands::Exit
- Inherits:
-
Object
- Object
- Mayl::Commands::Exit
- Defined in:
- lib/mayl/commands/exit.rb
Overview
Instance Method Summary collapse
-
#execute ⇒ Object
Public: Exits the program.
-
#initialize(env) ⇒ Exit
constructor
Public: Initializes a new Exit command.
Constructor Details
#initialize(env) ⇒ Exit
Public: Initializes a new Exit command.
env - the global environment
14 15 |
# File 'lib/mayl/commands/exit.rb', line 14 def initialize(env) end |
Instance Method Details
#execute ⇒ Object
Public: Exits the program.
Returns nothing.
20 21 22 |
# File 'lib/mayl/commands/exit.rb', line 20 def execute exit(0) end |