Sha256: 7222de5f8bbe5444a59ae4d5279fda43bc5e458cd5538614c4e798d4042bc951
Contents?: true
Size: 334 Bytes
Versions: 1
Compression:
Stored size: 334 Bytes
Contents
require 'gnawrnip/screenshot' module Gnawrnip class Photographer def take_shot frames << Screenshot.take end def reset! frames.clear end # # Close tempfiles. # def discard! frames.compact.each(&:close!) reset! end def frames @frames ||= [] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gnawrnip-0.2.5 | lib/gnawrnip/photographer.rb |