Skip to content

Commit c1c2a22

Browse files
authored
Opal 1.3 compatibility
Only require IO::Writable if it's available - that is - before Opal 1.3
1 parent d7c9312 commit c1c2a22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib-opal/opal/rspec/formatter/document_io.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Opal
22
module RSpec
33
class DocumentIO < IO
4-
include IO::Writable
4+
include IO::Writable if defined? IO::Writable
55

66
def initialize
77
`document.open()`

0 commit comments

Comments
 (0)