Sha256: 5ead357bf6500a9fa4082a7a952fcba3fe5fb7a7cb70278356e316844a9807f2
Contents?: true
Size: 377 Bytes
Versions: 4
Compression:
Stored size: 377 Bytes
Contents
# frozen_string_literal: true require 'forwardable' require 'stringio' class FakeIO attr_reader :original_filename, :content_type def initialize(content, filename: nil, content_type: nil) @io = StringIO.new(content) @original_filename = filename @content_type = content_type end extend Forwardable delegate %i[read rewind eof? close size] => :@io end
Version data entries
4 entries across 3 versions & 2 rubygems