Sha256: 4cf1edc172037a5d3d9caed84c8026a820dc3ef8ca7ac34690a7f46479ec9316
Contents?: true
Size: 275 Bytes
Versions: 2
Compression:
Stored size: 275 Bytes
Contents
class PSD module Node module BuildPreview def renderer(opts = {}) PSD::Renderer.new(self, opts) end def to_png @png ||= renderer.to_png end def save_as_png(output) to_png.save(output) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
psd-3.1.3 | lib/psd/nodes/build_preview.rb |
psd-3.1.2 | lib/psd/nodes/build_preview.rb |