Sha256: 661f1dd659954445f131bd2ac2954266ddd180c70a60e8e11e47b697faf2e0e7

Contents?: true

Size: 267 Bytes

Versions: 4

Compression:

Stored size: 267 Bytes

Contents

module Kernel
=begin
  def puts(obj="")
    obj = obj.to_s.gsub("&", "&amp;").gsub("<", "&lt;").gsub(">", "&gt;") + "<br/>"
    `document.getElementById('out').innerHTML += #<obj>`
  end
=end

  def puts(obj="")
    obj = obj.to_s
    `STDOUT_puts(#<obj>)`
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
superchris-rubyjs-0.8.2 test/common.Browser.rb
rubyjs-0.8.0 test/common.Browser.rb
rubyjs-0.7.1 test/common.Browser.rb
rubyjs-0.7.0 test/common.Browser.rb