Sha256: 64094882bfc0ee03f51acdf36ce44db99da6e60559c5ea234659a9210b4b5e94

Contents?: true

Size: 220 Bytes

Versions: 1

Compression:

Stored size: 220 Bytes

Contents

module ModelLog
  module Log
    class Context
      def initialize(context)
        @context = context
      end

      def to_struct
        Struct.new(*@context.keys).new(*@context.values)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
model_log-2.0.0 lib/model_log/context.rb