Sha256: 2cad6377e6a66f6559fd065b43e98012834d539d67009c933201c98d28d45a62
Contents?: true
Size: 341 Bytes
Versions: 4
Compression:
Stored size: 341 Bytes
Contents
module Refile class FileDouble attr_reader :original_filename, :content_type def initialize(data, name = nil, content_type: nil) @io = StringIO.new(data) @original_filename = name @content_type = content_type end extend Forwardable def_delegators :@io, :read, :rewind, :size, :eof?, :close end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
leifcr-refile-0.7.3 | lib/refile/file_double.rb |
leifcr-refile-0.7.1 | lib/refile/file_double.rb |
leifcr-refile-0.7.0 | lib/refile/file_double.rb |
leifcr-refile-0.6.3 | lib/refile/file_double.rb |