Class: Raki::Lint
- Inherits:
-
Middleware
- Object
- Middleware
- Raki::Lint
- Defined in:
- lib/raki/lint.rb
Instance Attribute Summary
Attributes inherited from Middleware
Instance Method Summary collapse
Methods inherited from Middleware
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 |