global

def validate_condition!

def validate_condition!
  return if condition_type == :none
  case condition
  when Symbol, String, Proc
    # noop
  else
    fail TypeError, "#{condition_type.inspect} should be a Symbol, String or Proc"
  end
end