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)
  <<-HELP
    print(msg)
print msg to STDOUT

    exit(status = 0)
exit the shell
also: quit()

    evalrb(source)
evaluate some ruby source
    HELP
end


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