Class: Grumlin::Middlewares::SerializeToSteps

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

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object



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

def call(env)
  env[:steps] = Grumlin::Steps.from(env[:traversal])
  @app.call(env)
end