File: mogrify_restricted.rb

package info (click to toggle)
ruby-mini-magick 4.10.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,588 kB
  • sloc: ruby: 1,859; sh: 7; makefile: 4
file content (15 lines) | stat: -rw-r--r-- 321 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require "mini_magick/tool/mogrify"

module MiniMagick
  class Tool
    ##
    # @see http://www.imagemagick.org/script/mogrify.php
    #
    class MogrifyRestricted < Mogrify
      def format(*args)
        fail NoMethodError,
          "you must call #format on a MiniMagick::Image directly"
      end
    end
  end
end