Sha256: ac78686f1056cd7ea9a02e0a997213333f388f2d53c576b115d1a6206d80135f
Contents?: true
Size: 439 Bytes
Versions: 12
Compression:
Stored size: 439 Bytes
Contents
module Opal module RSpec class DocumentIO < IO include IO::Writable def initialize `document.open();` end def close @closed = true `document.close()` end def write(html) if @closed `console.error(#{"DOC closed, can't write #{html}" })` else `document.write(#{html})` end end def flush end end end end
Version data entries
12 entries across 12 versions & 2 rubygems