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



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


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

def print(string)
  puts string
end

#to_sObject



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

def to_s
  "[object Shell]"
end