class BitmapCmdEditor::Validators::PrintTableValidator

@author Diego Hernán Piccinini Lagos To validate a command print table

Public Class Methods

validate(args) click to toggle source

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

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