class Coursemology::Evaluator::StringIO

Adapter for StringIO for compatibility with RubyZip.

StringIO does not inherit from IO, so RubyZip does not accept StringIO in place of IO.

Public Instance Methods

is_a?(klass) click to toggle source
Calls superclass method
# File lib/coursemology/evaluator/string_io.rb, line 6
def is_a?(klass)
  klass == IO || super
end
path() click to toggle source

RubyZip assumes all IO objects respond to path.

# File lib/coursemology/evaluator/string_io.rb, line 11
def path
  self
end