Module: Rack::Lint::Assertion

Included in:
Rack::Lint, ErrorWrapper, InputWrapper
Defined in:
lib/rack/lint.rb

Instance Method Summary collapse

Instance Method Details

#assert(message, &block) ⇒ Object



14
15
16
17
18
# File 'lib/rack/lint.rb', line 14

def assert(message, &block)
  unless block.call
    raise LintError, message
  end
end