Class: Grumlin::Middlewares::SerializeToBytecode
- Inherits:
-
Middleware
- Object
- Middleware
- Grumlin::Middlewares::SerializeToBytecode
- Defined in:
- lib/grumlin/middlewares/serialize_to_bytecode.rb
Instance Method Summary collapse
Instance Method Details
#call(env) ⇒ Object
4 5 6 7 8 |
# File 'lib/grumlin/middlewares/serialize_to_bytecode.rb', line 4 def call(env) env[:bytecode] = Grumlin::StepsSerializers::Bytecode.new(env[:steps_without_shortcuts], no_return: !env[:need_results]).serialize @app.call(env) end |