Sha256: 0d6bdcba75491e52da2e5db951449a01000b0efd4489d545181c02b2d19ce20c

Contents?: true

Size: 248 Bytes

Versions: 5

Compression:

Stored size: 248 Bytes

Contents

 class PSD
  class Node
    module BuildPreview
      def renderer
        PSD::Renderer.new(self)
      end

      def to_png
        renderer.to_png
      end

      def save_as_png(output)
        to_png.save(output)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
bench9000-0.1 vendor/psd.rb/lib/psd/nodes/build_preview.rb
psd-2.1.2 lib/psd/nodes/build_preview.rb
psd-2.1.1 lib/psd/nodes/build_preview.rb
psd-2.1.0 lib/psd/nodes/build_preview.rb
psd-2.0.0 lib/psd/nodes/build_preview.rb