Sha256: d9b0bafd980fc50232574e80b158f8aebcd142ba0628ec19903102e9700abbaa

Contents?: true

Size: 354 Bytes

Versions: 15

Compression:

Stored size: 354 Bytes

Contents

# frozen_string_literal: true

class Grumlin::Middlewares::SerializeToBytecode < Grumlin::Middlewares::Middleware
  def call(env)
    env[:bytecode] = Grumlin::StepsSerializers::Bytecode.new(env[:steps_without_shortcuts],
                                                             no_return: !env[:need_results]).serialize
    @app.call(env)
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
grumlin-1.2.0 lib/grumlin/middlewares/serialize_to_bytecode.rb
grumlin-1.1.0 lib/grumlin/middlewares/serialize_to_bytecode.rb
grumlin-1.0.4 lib/grumlin/middlewares/serialize_to_bytecode.rb
grumlin-1.0.3 lib/grumlin/middlewares/serialize_to_bytecode.rb
grumlin-1.0.3.beta1 lib/grumlin/middlewares/serialize_to_bytecode.rb
grumlin-1.0.2 lib/grumlin/middlewares/serialize_to_bytecode.rb
grumlin-1.0.1 lib/grumlin/middlewares/serialize_to_bytecode.rb
grumlin-1.0.0 lib/grumlin/middlewares/serialize_to_bytecode.rb
grumlin-1.0.0.rc7 lib/grumlin/middlewares/serialize_to_bytecode.rb
grumlin-1.0.0.rc6 lib/grumlin/middlewares/serialize_to_bytecode.rb
grumlin-1.0.0.rc5 lib/grumlin/middlewares/serialize_to_bytecode.rb
grumlin-1.0.0.rc4 lib/grumlin/middlewares/serialize_to_bytecode.rb
grumlin-1.0.0.rc3 lib/grumlin/middlewares/serialize_to_bytecode.rb
grumlin-1.0.0.rc2 lib/grumlin/middlewares/serialize_to_bytecode.rb
grumlin-1.0.0.rc1 lib/grumlin/middlewares/serialize_to_bytecode.rb