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
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) <<-HELP print(msg) print msg to STDOUT exit(status = 0) exit the shell also: quit() evalrb(source) evaluate some ruby source HELP end |
#print(string) ⇒ Object
108 109 110 |
# File 'lib/v8/cli.rb', line 108 def print(string) puts string end |
#to_s ⇒ Object
104 105 106 |
# File 'lib/v8/cli.rb', line 104 def to_s "[object Shell]" end |