Sha256: ed16562499d2e48a2bbe3b56952c63b4558c5a419dd182b763a0e8e289b0a268

Contents?: true

Size: 188 Bytes

Versions: 4

Compression:

Stored size: 188 Bytes

Contents

module CommandServiceObject
  module CheckHelper
    def check!(message, &block)
      raise "No block given" unless block_given?

      fail!(message) unless block.call
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
command_service_object-1.3.0 lib/command_service_object/helpers/check_helper.rb
command_service_object-1.2.1 lib/command_service_object/helpers/check_helper.rb
command_service_object-1.1.1 lib/command_service_object/helpers/check_helper.rb
command_service_object-1.1.0 lib/command_service_object/helpers/check_helper.rb