Method: CORL::Plugin::Network#attach_data

Defined in:
lib/core/plugin/network.rb

#attach_data(type, name, data, options = {}) ⇒ Object




283
284
285
286
287
288
289
290
291
# File 'lib/core/plugin/network.rb', line 283

def attach_data(type, name, data, options = {})
  attach_config = Config.ensure(options).import({ :type => :source })
  attached_data = nil    
  
  if data.is_a?(String)
    attached_data = config.attach(type, name, data, attach_config)
  end  
  attached_data
end