Sha256: b2a22d1d60a5653465334d495ed864a0310fe6c34656f6dd13b0d3aafe99e539
Contents?: true
Size: 373 Bytes
Versions: 3
Compression:
Stored size: 373 Bytes
Contents
require "text_tunnel/watched_file" class WatchedFileRepository def initialize @watched_files = {} end def create(name, data) watched_file = WatchedFile.new(name, data) @watched_files[watched_file.id] = watched_file end def remove(watched_file) @watched_files.delete(watched_file.id) end def find(id) @watched_files.fetch(id) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
text_tunnel-0.2.0 | lib/text_tunnel/watched_file_repository.rb |
text_tunnel-0.1.1 | lib/text_tunnel/watched_file_repository.rb |
text_tunnel-0.1.0 | lib/text_tunnel/watched_file_repository.rb |