# File lib/chef_zero/data_store/memory_store_v2.rb, line 73 def create(path, name, data, *options) if !data.is_a?(String) raise "set only works with strings" end parent = _get(path, options.include?(:create_dir)) if parent.has_key?(name) raise DataAlreadyExistsError.new(path + [name]) end parent[name] = data end