lib/coursemology/evaluator/string_io.rb in coursemology-evaluator-0.1.6 vs lib/coursemology/evaluator/string_io.rb in coursemology-evaluator-0.1.7

- old
+ new

@@ -1,14 +1,14 @@ -# frozen_string_literal: true -# Adapter for StringIO for compatibility with RubyZip. -# -# StringIO does not inherit from IO, so RubyZip does not accept StringIO in place of IO. -class Coursemology::Evaluator::StringIO < ::StringIO - def is_a?(klass) - klass == IO || super - end - - # RubyZip assumes all IO objects respond to path. - def path - self - end -end +# frozen_string_literal: true +# Adapter for StringIO for compatibility with RubyZip. +# +# StringIO does not inherit from IO, so RubyZip does not accept StringIO in place of IO. +class Coursemology::Evaluator::StringIO < ::StringIO + def is_a?(klass) + klass == IO || super + end + + # RubyZip assumes all IO objects respond to path. + def path + self + end +end