Sha256: abd2b26b8175486d4cdc65e3fca2c58b2ce2b293ee4c743321af108a2c4b4fbc
Contents?: true
Size: 415 Bytes
Versions: 4
Compression:
Stored size: 415 Bytes
Contents
# frozen_string_literal: true module AdequateSerialization module Steps class Step attr_reader :next_step def initialize(next_step = :last) @next_step = next_step end def apply(response) apply_next(response) end private def apply_next(response) next_step == :last ? response.object : next_step.apply(response) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems