Class: TreeRepl::Quit

Inherits:
Cmd
  • Object
show all
Defined in:
lib/treerepl/cmds.rb

Instance Attribute Summary

Attributes inherited from Cmd

#name, #repl

Instance Method Summary collapse

Constructor Details

#initialize(repl) ⇒ Quit

Returns a new instance of Quit.



96
97
98
# File 'lib/treerepl/cmds.rb', line 96

def initialize(repl)
  super(repl,'quit')
end

Instance Method Details

#exec(args) ⇒ Object



102
103
104
# File 'lib/treerepl/cmds.rb', line 102

def exec(args)
  exit 0
end

#helpObject



99
100
101
# File 'lib/treerepl/cmds.rb', line 99

def help
  'Quit'
end