class BitmapCmdEditor::Validators::ClearImageValidator

@author Diego Hernán Piccinini Lagos To validate a new bitmap image table created

Public Class Methods

validate(args) click to toggle source

@param args [Array] the command 0=> ‘C’

# File lib/bitmap_cmd_editor/validators/clear_image_validator.rb, line 8
def validate(args)
        begin
                raise ClearImageArgumentError.new(
                        ErrorMessage.new(:clear_image_wrongs_arguments).show_content) unless args.count == 1
                :valid
        rescue  => err
                err.message
        end
end