Class: TreeRepl::Quit
Instance Attribute Summary
Attributes inherited from Cmd
Instance Method Summary collapse
- #exec(args) ⇒ Object
- #help ⇒ Object
-
#initialize(repl) ⇒ Quit
constructor
A new instance of Quit.
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 |
#help ⇒ Object
99 100 101 |
# File 'lib/treerepl/cmds.rb', line 99 def help 'Quit' end |