Class: V8::CLI::Shell
Instance Method Summary collapse
- #exit(status = 0) ⇒ Object (also: #quit)
- #help(*args) ⇒ Object
- #print(string) ⇒ Object
- #to_s ⇒ Object
Instance Method Details
#exit(status = 0) ⇒ Object Also known as: quit
111 112 113 |
# File 'lib/v8/cli.rb', line 111 def exit(status = 0) Kernel.exit(status) end |
#help(*args) ⇒ Object
117 118 119 120 121 122 123 124 125 126 127 128 129 |
# File 'lib/v8/cli.rb', line 117 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 |
#print(string) ⇒ Object
107 108 109 |
# File 'lib/v8/cli.rb', line 107 def print(string) puts string end |
#to_s ⇒ Object
103 104 105 |
# File 'lib/v8/cli.rb', line 103 def to_s "[object Shell]" end |