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
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 |
#print(string) ⇒ Object
106 107 108 |
# File 'lib/v8/cli.rb', line 106 def print(string) puts string end |
#to_s ⇒ Object
102 103 104 |
# File 'lib/v8/cli.rb', line 102 def to_s "[object Shell]" end |