Class: EasyRepl::Commands::Exit

Inherits:
Object
  • Object
show all
Extended by:
Matchable
Defined in:
lib/easy_repl/commands/exit.rb

Class Method Summary collapse

Methods included from Matchable

matches

Class Method Details

.cmd_txtObject



6
7
8
# File 'lib/easy_repl/commands/exit.rb', line 6

def self.cmd_txt
  "exit"
end

.run(input) ⇒ Object



10
11
12
# File 'lib/easy_repl/commands/exit.rb', line 10

def self.run(input)
  throw :exit_inner_loop, :exit
end