Module: Rack::Lint::Assertion
- Included in:
- Rack::Lint, ErrorWrapper, HijackWrapper, InputWrapper
- Defined in:
- lib/rack/lint.rb
Instance Method Summary collapse
Instance Method Details
#assert(message, &block) ⇒ Object
18 19 20 21 22 |
# File 'lib/rack/lint.rb', line 18 def assert(, &block) unless block.call raise LintError, end end |