Sha256: fb04a160b7c6e5f697a7cd2563c1ed5d1985c1349401b253b1d57aaa912f2747
Contents?: true
Size: 383 Bytes
Versions: 2
Compression:
Stored size: 383 Bytes
Contents
module SimpleService class ValidatesCommandsNotEmpty < Command expects :provided_commands skip_validation true def call if provided_commands.nil? || provided_commands.empty? error_msg = 'This Organizer class does not contain any command definitions' raise SimpleService::OrganizerCommandsNotDefinedError, error_msg end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple_service-1.2.6 | lib/simple_service/commands/validates_commands_not_empty.rb |
simple_service-1.2.5 | lib/simple_service/commands/validates_commands_not_empty.rb |