Sha256: e0ea45e14ae33b53c744c12b1e57d5976759ac6c94e1613e872ea60635d19c89

Contents?: true

Size: 283 Bytes

Versions: 2

Compression:

Stored size: 283 Bytes

Contents

module Ahnnotate
  module VfsDriver
    class ReadOnlyFilesystem < Filesystem
      attr_reader :changes

      def initialize(root:)
        super
        @changes = {}
      end

      def []=(path, content)
        @changes[path] = content
        nil
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ahnnotate-0.5.1 lib/ahnnotate/vfs_driver/read_only_filesystem.rb
ahnnotate-0.5.0 lib/ahnnotate/vfs_driver/read_only_filesystem.rb