lib/sync_attr.rb in sync_attr-0.0.1 vs lib/sync_attr.rb in sync_attr-0.1.0

- old
+ new

@@ -20,14 +20,16 @@ # # Author: Reid Morrison <reidmo@gmail.com> require 'sync' require 'sync_attr/version' require 'sync_attr/class_attributes' -#require 'sync_attr/instance_attributes' +require 'sync_attr/instance_attributes' module SyncAttr # Add class methods and initialize mixin def self.included(base) base.extend(SyncAttr::ClassAttributes::ClassMethods) - base.send(:sync_attr_class_attr_init) + base.extend(SyncAttr::InstanceAttributes::ClassMethods) + base.send(:sync_cattr_init) + base.send(:sync_attr_init) end end