summaryrefslogtreecommitdiff
path: root/lib/irb/command/exit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/irb/command/exit.rb')
-rw-r--r--lib/irb/command/exit.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/irb/command/exit.rb b/lib/irb/command/exit.rb
new file mode 100644
index 0000000000..b4436f0343
--- /dev/null
+++ b/lib/irb/command/exit.rb
@@ -0,0 +1,18 @@
+# frozen_string_literal: true
+
+module IRB
+ # :stopdoc:
+
+ module Command
+ class Exit < Base
+ category "IRB"
+ description "Exit the current irb session."
+
+ def execute(_arg)
+ IRB.irb_exit
+ end
+ end
+ end
+
+ # :startdoc:
+end