module CommandServiceObject::CheckHelper

Public Instance Methods

check!(message, &block) click to toggle source
# File lib/command_service_object/helpers/check_helper.rb, line 3
def check!(message, &block)
  raise "No block given" unless block_given?

  fail!(message) if block.call
end