Module: Rack::Lint::Assertion

Included in:
Rack::Lint, ErrorWrapper, HijackWrapper, InputWrapper
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rack-2.2.5/lib/rack/lint.rb

Instance Method Summary collapse

Instance Method Details

#assert(message) ⇒ Object



19
20
21
22
23
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rack-2.2.5/lib/rack/lint.rb', line 19

def assert(message)
  unless yield
    raise LintError, message
  end
end