class MakeIcon::Helper::AppiconHelper
Public Class Methods
check_input_image_size(image, size)
click to toggle source
# File lib/makeicon.rb, line 6 def self.check_input_image_size(image, size) puts "Minimum width of input image should be #{size}" if image.width < size puts "Minimum height of input image should be #{size}" if image.height < size puts "Input image should be square" if image.width != image.height # UI.user_error!("Minimum width of input image should be #{size}") if image.width < size # UI.user_error!("Minimum height of input image should be #{size}") if image.height < size # UI.user_error!("Input image should be square") if image.width != image.height end