Module: Icss::ReceiverModel::ActsAsLoadable

Included in:
Icss::ReceiverModel
Defined in:
lib/icss/receiver_model/acts_as_loadable.rb

Overview

adds methods to load and store from json, yaml or magic

This will require ‘json’ UNLESS you have already included something (so if you want to say require ‘yajl/json_gem’ then do that first).

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#merge_from_file!(filename) ⇒ Object



39
40
41
42
# File 'lib/icss/receiver_model/acts_as_loadable.rb', line 39

def merge_from_file! filename
  other_obj = self.class.receive_from_file(filename)
  tree_merge! other_obj
end