Class: Raki::Lint

Inherits:
Middleware show all
Defined in:
lib/raki/lint.rb

Instance Attribute Summary

Attributes inherited from Middleware

#app

Instance Method Summary collapse

Methods inherited from Middleware

#initialize

Constructor Details

This class inherits a constructor from Raki::Middleware

Instance Method Details

#call(env) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/raki/lint.rb', line 8

def call(env)
  assert("No env given") { env }
  # assert("Run complained") { @block.call(env) } if @block

  result = @app&.call(env)
  assert("Expected hash") { result.instance_of?(Hash) }
  result
end