Skip to content

Commit 2965e55

Browse files
committed
Suppress warning: method redefined; discarding old cli and cli=
1 parent ff8f5df commit 2965e55

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/mini_magick/configuration.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,21 @@ def processor=(processor)
135135
end
136136
end
137137

138+
##
139+
# Get [ImageMagick](http://www.imagemagick.org) or
140+
# [GraphicsMagick](http://www.graphicsmagick.org).
141+
#
142+
# @return [Symbol] `:imagemagick` or `:graphicsmagick`
143+
#
138144
def cli
139145
@cli || CLI_DETECTION.key(processor) or
140146
fail MiniMagick::Error, "You must have ImageMagick or GraphicsMagick installed"
141147
end
142148

149+
##
150+
# Set whether you want to use [ImageMagick](http://www.imagemagick.org) or
151+
# [GraphicsMagick](http://www.graphicsmagick.org).
152+
#
143153
def cli=(value)
144154
@cli = value
145155

0 commit comments

Comments
 (0)