Class: Atacama::Context

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/atacama/contract/context.rb

Overview

Generic object store for passing values between contracts

Instance Method Summary collapse

Instance Method Details

#merge!(hash) ⇒ Object



10
11
12
13
# File 'lib/atacama/contract/context.rb', line 10

def merge!(hash)
  hash.each { |(key, value)| self[key] = value }
  self
end