Class: V8::CLI::Shell

Inherits:
Object show all
Defined in:
lib/v8/cli.rb

Instance Method Summary collapse

Instance Method Details

#exit(status = 0) ⇒ Object Also known as: quit



112
113
114
# File 'lib/v8/cli.rb', line 112

def exit(status = 0)
  Kernel.exit(status)
end

#help(*args) ⇒ Object



118
119
120
121
122
123
124
125
126
127
128
129
130
# File 'lib/v8/cli.rb', line 118

def help(*args)
  "    print(msg)\nprint msg to STDOUT\n\n    exit(status = 0)\nexit the shell\nalso: quit()\n\n    evalrb(source)\nevaluate some ruby source\n    HELP\nend\n"


108
109
110
# File 'lib/v8/cli.rb', line 108

def print(string)
  puts string
end

#to_sObject



104
105
106
# File 'lib/v8/cli.rb', line 104

def to_s
  "[object Shell]"
end