lib/cff/file.rb
# :call-seq:
#   validate!(fail_fast: false, fail_on_filename: true)
#
# Validate this file and raise a ValidationError upon failure. If an error
# is raised it will contain the detected validation failures for further
# inspection.
#
# You can choose whether filename validation failure should cause overall
# validation failure with the `fail_on_filename` parameter (default: true).


Validate this file and raise a ValidationError upon failure. If an error
is raised it will contain the detected validation failures for further
inspection.

You can choose whether filename validation failure should cause overall
validation failure with the `fail_on_filename` parameter (default: true).
Validate this file and raise a ValidationError upon failure . If an error is raised it will contain the detected validation failures for further inspection . You can choose whether filename validation failure should cause overall validation failure with the ` fail_on_filename ` parameter ( default : true ) .
def validate!(fail_fast: false, fail_on_filename: true)
      result = validate(
        fail_fast: fail_fast, fail_on_filename: fail_on_filename
      )
      return if result[0]
      raise ValidationError.new(result[1], invalid_filename: !result[2])
    end
def validate! ( fail_fast : false , fail_on_filename : true ) result = validate ( fail_fast : fail_fast , fail_on_filename : fail_on_filename ) return if result [ 0 ] raise ValidationError . new ( result [ 1 ] , invalid_filename : ! result [ 2 ] ) end
:call-seq:
validate!
: call - seq : validate!
fail_fast
fail_on_filename