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



110
111
112
# File 'lib/v8/cli.rb', line 110

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

#help(*args) ⇒ Object



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

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


106
107
108
# File 'lib/v8/cli.rb', line 106

def print(string)
  puts string
end

#to_sObject



102
103
104
# File 'lib/v8/cli.rb', line 102

def to_s
  "[object Shell]"
end