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)
  <<-HELP
    print(msg)
print msg to STDOUT    
  
    exit(status = 0)
exit the shell
also: quit()
    
    evalrb(source)
evaluate some ruby source
    HELP
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