Sha256: 042d56e73918d99880d9d64450d35e9750a9f0fecb8f934fd836d19e78218d6f
Contents?: true
Size: 749 Bytes
Versions: 8
Compression:
Stored size: 749 Bytes
Contents
# ========================================================================== # Project: Spade - CommonJS Runtime # Copyright: ©2010 Strobe Inc. All rights reserved. # License: Licened under MIT license (see LICENSE) # ========================================================================== # Global object used for the shell. module Spade class Shell attr_accessor :ctx def to_s "[object Shell]" end def exit(status=0) ctx.reactor.exit(status) end alias_method :quit, :exit def help(*args) <<-HELP print(msg) print msg to STDOUT exit(status = 0) exit the shell also: quit() evalrb(source) evaluate some ruby source HELP end end end
Version data entries
8 entries across 8 versions & 1 rubygems