Class: Grumlin::Middlewares::CastResults

Inherits:
Middleware
  • Object
show all
Defined in:
lib/grumlin/middlewares/cast_results.rb

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object



4
5
6
# File 'lib/grumlin/middlewares/cast_results.rb', line 4

def call(env)
  env[:parsed_results] = @app.call(env).flat_map { |item| Grumlin::Typing.cast(item) }
end