Sha256: 573ae9455f0349996b893f895fda1ae83d894168a8950ab5c45309d2474eae93
Contents?: true
Size: 293 Bytes
Versions: 3
Compression:
Stored size: 293 Bytes
Contents
# frozen_string_literal: true require 'ostruct' module Atacama # Generic object store for passing values between contracts class Context < OpenStruct alias key? respond_to? def merge!(hash) hash.each do |(key, value)| self[key] = value end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
atacama-0.1.2 | lib/atacama/contract/context.rb |
atacama-0.1.1 | lib/atacama/contract/context.rb |
atacama-0.1.0 | lib/atacama/contract/context.rb |